home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-07-09 | 93.5 KB | [STAK/WILD] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: Hp2pict deck
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| HyperCard Stack (archive/hypercard)
| idMeta
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sat Jun 2 14:30:54 1990, modified Mon Jul 9 06:51:02 1990, creator HyperCard, type HyperCard stack, 65088 bytes "Hp2pict deck" , at 0xfec0 30463 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Mac HyperCard stack (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [STAK] |
macFileCreator | [WILD] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 48 70 32 70 69 63 | 74 20 64 65 63 6b 00 00 |..Hp2pic|t deck..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 00 fe 40 00 | 00 76 ff a2 8d b6 5e a2 |......@.|.v....^.|
|00000060| be 12 16 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fb b0 00 00 |........|........|
|00000080| 00 00 2a 00 53 54 41 4b | ff ff ff ff 3c e3 b9 71 |..*.STAK|....<..q|
|00000090| 00 00 00 08 00 00 fe 40 | 00 00 2a 00 00 00 00 00 |.......@|..*.....|
|000000a0| 00 00 00 00 00 00 00 03 | 00 00 0a f2 00 00 00 08 |........|........|
|000000b0| 00 00 19 7f 00 00 1c 60 | 00 00 00 00 00 00 00 00 |.......`|........|
|000000c0| 00 00 0d dc 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 01 22 80 00 01 25 80 00 | 01 25 80 00 01 25 80 00 |."...%..|.%...%..|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 22 00 00 00 22 00 |........|.."...".|
|00000350| 88 00 22 00 88 00 22 00 | cc 00 33 00 cc 00 33 00 |.."...".|..3...3.|
|00000360| cc 88 33 22 cc 88 33 22 | ff 00 ff 00 ff 00 ff 00 |..3"..3"|........|
|00000370| ee cc bb 33 ee cc bb 33 | ff cc ff 33 ff cc ff 33 |...3...3|...3...3|
|00000380| ff ee ff bb ff ee ff bb | ff ff ff bb ff ff ff bb |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 55 55 55 55 55 55 55 55 | 82 44 39 44 82 01 01 01 |UUUUUUUU|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 2d 0d 6f 6e 20 6f 70 | 65 6e 53 74 61 63 6b 0d |.-.on op|enStack.|
|00000690| 67 6c 6f 62 61 6c 20 20 | 66 69 6c 65 43 72 65 61 |global |fileCrea|
|000006a0| 74 6f 72 0d 2d 2d 20 6e | 65 65 64 20 74 6f 20 63 |tor.-- n|eed to c|
|000006b0| 68 65 63 6b 20 66 6f 72 | 20 68 79 70 65 72 63 61 |heck for| hyperca|
|000006c0| 72 64 20 76 65 72 73 69 | 6f 6e 20 3e 3d 20 31 2e |rd versi|on >= 1.|
|000006d0| 32 0d 70 75 73 68 20 63 | 61 72 64 20 2d 2d 20 73 |2.push c|ard -- s|
|000006e0| 61 76 65 20 61 6e 20 65 | 78 74 72 61 20 66 6f 72 |ave an e|xtra for|
|000006f0| 20 72 65 74 75 72 6e 73 | 0d 73 65 74 20 74 65 78 | returns|.set tex|
|00000700| 74 61 72 72 6f 77 73 20 | 74 6f 20 74 72 75 65 20 |tarrows |to true |
|00000710| 2d 2d 20 64 6f 65 73 6e | 27 74 20 77 6f 72 6b 20 |-- doesn|'t work |
|00000720| 21 3f 0d 70 75 74 20 22 | 45 44 49 54 22 20 69 6e |!?.put "|EDIT" in|
|00000730| 74 6f 20 66 69 6c 65 43 | 72 65 61 74 6f 72 20 20 |to fileC|reator |
|00000740| 20 20 20 2d 2d 20 6e 65 | 65 64 20 75 73 65 72 20 | -- ne|ed user |
|00000750| 66 69 65 6c 64 20 66 6f | 72 20 74 68 69 73 0d 65 |field fo|r this.e|
|00000760| 6e 64 20 6f 70 65 6e 53 | 74 61 63 6b 0d 0d 6f 6e |nd openS|tack..on|
|00000770| 20 63 6c 6f 73 65 53 74 | 61 63 6b 0d 2d 2d 0d 65 | closeSt|ack.--.e|
|00000780| 6e 64 20 63 6c 6f 73 65 | 53 74 61 63 6b 0d 0d 6f |nd close|Stack..o|
|00000790| 6e 20 73 74 61 72 74 75 | 70 0d 73 65 6e 64 20 47 |n startu|p.send G|
|000007a0| 65 74 48 6f 6d 65 49 6e | 66 6f 20 74 6f 20 53 74 |etHomeIn|fo to St|
|000007b0| 61 63 6b 20 48 6f 6d 65 | 0d 65 6e 64 20 73 74 61 |ack Home|.end sta|
|000007c0| 72 74 75 70 0d 0d 0d 0d | 2d 2d 0d 2d 2d 20 67 65 |rtup....|--.-- ge|
|000007d0| 6e 65 72 61 6c 20 75 74 | 69 6c 69 74 69 65 73 0d |neral ut|ilities.|
|000007e0| 2d 2d 0d 66 75 6e 63 74 | 69 6f 6e 20 6c 69 6e 65 |--.funct|ion line|
|000007f0| 43 6c 69 63 6b 65 64 20 | 2d 2d 20 72 65 74 75 72 |Clicked |-- retur|
|00000800| 6e 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ns the n|umber of|
|00000810| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 63 | the las|t line c|
|00000820| 6c 69 63 6b 65 64 0d 70 | 75 74 20 28 28 28 69 74 |licked.p|ut (((it|
|00000830| 65 6d 20 32 20 6f 66 20 | 74 68 65 20 63 6c 69 63 |em 2 of |the clic|
|00000840| 6b 6c 6f 63 20 2d 20 69 | 74 65 6d 20 32 20 6f 66 |kloc - i|tem 2 of|
|00000850| 20 74 68 65 20 72 65 63 | 74 20 6f 66 20 74 68 65 | the rec|t of the|
|00000860| 20 74 61 72 67 65 74 29 | c2 0d 64 69 76 20 74 68 | target)|..div th|
|00000870| 65 20 74 65 78 74 68 65 | 69 67 68 74 20 6f 66 20 |e texthe|ight of |
|00000880| 74 68 65 20 74 61 72 67 | 65 74 29 20 2b 20 31 29 |the targ|et) + 1)|
|00000890| 20 69 6e 74 6f 20 6c 6e | 75 6d 0d 69 66 20 74 68 | into ln|um.if th|
|000008a0| 65 20 73 74 79 6c 65 20 | 6f 66 20 74 68 65 20 74 |e style |of the t|
|000008b0| 61 72 67 65 74 20 69 73 | 20 22 73 63 72 6f 6c 6c |arget is| "scroll|
|000008c0| 69 6e 67 22 20 74 68 65 | 6e 0d 70 75 74 20 74 72 |ing" the|n.put tr|
|000008d0| 75 6e 63 28 73 63 72 6f | 6c 6c 20 6f 66 20 74 68 |unc(scro|ll of th|
|000008e0| 65 20 74 61 72 67 65 74 | 20 2f 20 74 65 78 74 68 |e target| / texth|
|000008f0| 65 69 67 68 74 20 6f 66 | 20 74 68 65 20 74 61 72 |eight of| the tar|
|00000900| 67 65 74 29 20 69 6e 74 | 6f 20 73 6e 75 6d 0d 72 |get) int|o snum.r|
|00000910| 65 74 75 72 6e 20 6c 6e | 75 6d 20 2b 20 73 6e 75 |eturn ln|um + snu|
|00000920| 6d 0d 65 6c 73 65 0d 72 | 65 74 75 72 6e 20 6c 6e |m.else.r|eturn ln|
|00000930| 75 6d 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 6c 69 |um.end i|f.end li|
|00000940| 6e 65 43 6c 69 63 6b 65 | 64 0d 0d 2d 2d 20 65 6e |neClicke|d..-- en|
|00000950| 64 20 73 74 61 63 6b 0d | 00 6b 67 72 6f 75 6e 64 |d stack.|.kground|
|00000960| 20 22 43 6f 6d 6d 2e 62 | 61 63 6b 22 0d 65 6e 64 | "Comm.b|ack".end|
|00000970| 20 63 6c 6f 73 65 53 74 | 61 63 6b 0d 0d 6f 6e 20 | closeSt|ack..on |
|00000980| 73 74 61 72 74 75 70 0d | 73 65 6e 64 20 47 65 74 |startup.|send Get|
|00000990| 48 6f 6d 65 49 6e 66 6f | 20 74 6f 20 53 74 61 63 |HomeInfo| to Stac|
|000009a0| 6b 20 48 6f 6d 65 0d 65 | 6e 64 20 73 74 61 72 74 |k Home.e|nd start|
|000009b0| 75 70 0d 0d 0d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |up...---|--------|
|000009c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000009d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000009e0| 2d 2d 0d 2d 2d 20 a6 a6 | a6 20 50 72 69 6d 61 72 |--.-- ..|. Primar|
|000009f0| 79 20 43 6f 6d 6d 2e 20 | 54 72 61 6e 73 70 6f 72 |y Comm. |Transpor|
|00000a00| 74 20 72 6f 75 74 69 6e | 65 73 20 69 6e 20 66 6f |t routin|es in fo|
|00000a10| 72 20 53 65 72 69 61 6c | 20 6c 69 6e 6b 0d 2d 2d |r Serial| link.--|
|00000a20| 20 74 68 65 73 65 20 64 | 65 70 65 6e 64 20 6f 6e | these d|epend on|
|00000a30| 20 63 6f 6d 6d 20 74 72 | 61 6e 73 70 6f 72 74 20 | comm tr|ansport |
|00000a40| 66 6f 72 6d 20 2d 2d 20 | 74 63 70 20 6f 72 20 73 |form -- |tcp or s|
|00000a50| 65 72 69 61 6c 0d 2d 2d | 20 21 4e 6f 74 65 21 20 |erial.--| !Note! |
|00000a60| 74 68 65 20 74 68 72 65 | 65 20 70 61 72 61 67 72 |the thre|e paragr|
|00000a70| 61 70 68 20 63 68 61 72 | 73 20 28 a6 29 20 61 74 |aph char|s (.) at|
|00000a80| 20 74 68 65 20 74 6f 70 | 2c 20 61 6e 64 20 74 68 | the top|, and th|
|00000a90| 65 0d 2d 2d 20 74 68 72 | 65 65 20 64 61 67 67 65 |e.-- thr|ee dagge|
|00000aa0| 72 73 20 28 a0 29 20 61 | 74 20 74 68 65 20 62 6f |rs (.) a|t the bo|
|00000ab0| 74 74 6f 6d 20 6f 66 20 | 74 68 69 73 20 73 65 63 |ttom of |this sec|
|00000ac0| 74 69 6f 6e 20 6d 75 73 | 74 20 72 65 6d 61 69 6e |tion mus|t remain|
|00000ad0| 0d 2d 2d 20 69 6e 20 70 | 6c 61 63 65 20 66 6f 72 |.-- in p|lace for|
|00000ae0| 20 69 6e 73 74 61 6c 6c | 61 74 69 6f 6e 20 69 6e | install|ation in|
|00000af0| 74 6f 20 74 68 65 20 6d | 61 69 6e 20 73 74 61 63 |to the m|ain stac|
|00000b00| 6b 0d 2d 2d 0d 6f 6e 20 | 73 65 6e 64 53 74 72 20 |k.--.on |sendStr |
|00000b10| 20 6d 73 67 0d 73 65 6e | 64 53 70 6f 72 74 20 6d | msg.sen|dSport m|
|00000b20| 73 67 0d 65 6e 64 20 73 | 65 6e 64 53 74 72 0d 0d |sg.end s|endStr..|
|00000b30| 6f 6e 20 73 65 6e 64 4c | 69 6e 65 20 20 6d 73 67 |on sendL|ine msg|
|00000b40| 0d 73 65 6e 64 53 70 6f | 72 74 20 6d 73 67 20 26 |.sendSpo|rt msg &|
|00000b50| 20 72 65 74 75 72 6e 0d | 65 6e 64 20 73 65 6e 64 | return.|end send|
|00000b60| 6c 69 6e 65 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 72 |line..fu|nction r|
|00000b70| 65 63 76 53 74 72 20 74 | 69 6d 65 6f 75 74 0d 72 |ecvStr t|imeout.r|
|00000b80| 65 74 75 72 6e 20 72 65 | 63 76 43 68 61 72 73 28 |eturn re|cvChars(|
|00000b90| 20 74 69 6d 65 6f 75 74 | 29 0d 65 6e 64 20 72 65 | timeout|).end re|
|00000ba0| 63 76 53 74 72 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |cvStr..f|unction |
|00000bb0| 72 65 63 76 54 6f 20 20 | 65 6e 64 73 74 72 2c 20 |recvTo |endstr, |
|00000bc0| 74 69 6d 65 6f 75 74 2c | 20 6f 6c 64 73 74 72 0d |timeout,| oldstr.|
|00000bd0| 72 65 74 75 72 6e 20 72 | 65 63 76 55 70 54 6f 28 |return r|ecvUpTo(|
|00000be0| 20 65 6e 64 73 74 72 2c | 20 74 69 6d 65 6f 75 74 | endstr,| timeout|
|00000bf0| 2c 20 6f 6c 64 73 74 72 | 29 0d 65 6e 64 20 72 65 |, oldstr|).end re|
|00000c00| 63 76 54 6f 0d 0d 6f 6e | 20 53 74 72 69 70 43 6f |cvTo..on| StripCo|
|00000c10| 6e 74 72 6f 6c 73 0d 63 | 6f 6e 66 69 67 75 72 65 |ntrols.c|onfigure|
|00000c20| 53 50 6f 72 74 20 73 74 | 72 69 70 43 6f 6e 74 72 |SPort st|ripContr|
|00000c30| 6f 6c 73 4f 6e 0d 65 6e | 64 20 73 74 72 69 70 43 |olsOn.en|d stripC|
|00000c40| 6f 6e 74 72 6f 6c 73 0d | 0d 6f 6e 20 4b 65 65 70 |ontrols.|.on Keep|
|00000c50| 43 6f 6e 74 72 6f 6c 73 | 0d 63 6f 6e 66 69 67 75 |Controls|.configu|
|00000c60| 72 65 53 50 6f 72 74 20 | 73 74 72 69 70 43 6f 6e |reSPort |stripCon|
|00000c70| 74 72 6f 6c 73 4f 66 66 | 0d 65 6e 64 20 6b 65 65 |trolsOff|.end kee|
|00000c80| 70 43 6f 6e 74 72 6f 6c | 73 0d 0d 2d 2d 20 65 6e |pControl|s..-- en|
|00000c90| 64 20 6f 66 20 63 6f 6d | 6d 20 73 70 65 63 69 66 |d of com|m specif|
|00000ca0| 69 63 20 68 61 6e 64 6c | 65 72 73 20 a0 a0 a0 0d |ic handl|ers ....|
|00000cb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 6f 6e 20 |--------|---..on |
|00000cd0| 73 65 6e 64 43 61 6e 63 | 65 6c 0d 73 65 6e 64 73 |sendCanc|el.sends|
|00000ce0| 74 72 20 6e 75 6d 74 6f | 63 68 61 72 28 33 29 0d |tr numto|char(3).|
|00000cf0| 65 6e 64 20 73 65 6e 64 | 43 61 6e 63 65 6c 0d 0d |end send|Cancel..|
|00000d00| 6f 6e 20 73 65 6e 64 41 | 63 63 65 70 74 0d 2d 2d |on sendA|ccept.--|
|00000d10| 20 63 6f 6e 74 72 6f 6c | 2d 5a 0d 73 65 6e 64 73 | control|-Z.sends|
|00000d20| 74 72 20 6e 75 6d 74 6f | 63 68 61 72 28 32 36 29 |tr numto|char(26)|
|00000d30| 0d 65 6e 64 20 73 65 6e | 64 41 63 63 65 70 74 0d |.end sen|dAccept.|
|00000d40| 0d 6f 6e 20 73 65 6e 64 | 58 6f 66 66 0d 73 65 6e |.on send|Xoff.sen|
|00000d50| 64 73 74 72 20 6e 75 6d | 54 6f 43 68 61 72 28 31 |dstr num|ToChar(1|
|00000d60| 39 29 0d 65 6e 64 20 73 | 65 6e 64 58 6f 66 66 0d |9).end s|endXoff.|
|00000d70| 0d 6f 6e 20 73 65 6e 64 | 58 6f 6e 0d 73 65 6e 64 |.on send|Xon.send|
|00000d80| 73 74 72 20 6e 75 6d 54 | 6f 43 68 61 72 28 31 37 |str numT|oChar(17|
|00000d90| 29 0d 65 6e 64 20 73 65 | 6e 64 58 6f 6e 0d 0d 0d |).end se|ndXon...|
|00000da0| 2d 2d 0d 2d 2d 20 47 65 | 6e 65 72 61 6c 20 56 61 |--.-- Ge|neral Va|
|00000db0| 78 20 63 6f 6d 6d 61 6e | 64 20 68 61 6e 64 6c 65 |x comman|d handle|
|00000dc0| 72 73 0d 2d 2d 0d 66 75 | 6e 63 74 69 6f 6e 20 63 |rs.--.fu|nction c|
|00000dd0| 68 65 63 6b 56 61 78 0d | 67 6c 6f 62 61 6c 20 73 |heckVax.|global s|
|00000de0| 65 73 73 69 6f 6e 49 73 | 4f 70 65 6e 0d 69 66 20 |essionIs|Open.if |
|00000df0| 73 65 73 73 69 6f 6e 49 | 73 4f 70 65 6e 20 69 73 |sessionI|sOpen is|
|00000e00| 20 66 61 6c 73 65 20 74 | 68 65 6e 0d 61 6e 73 77 | false t|hen.answ|
|00000e10| 65 72 20 22 50 6c 65 61 | 73 65 20 63 6f 6e 6e 65 |er "Plea|se conne|
|00000e20| 63 74 20 77 69 74 68 20 | 68 6f 73 74 20 66 69 72 |ct with |host fir|
|00000e30| 73 74 22 20 77 69 74 68 | 20 22 4f 6b 61 79 22 0d |st" with| "Okay".|
|00000e40| 2d 2d 20 67 6f 20 74 6f | 20 63 61 72 64 20 22 43 |-- go to| card "C|
|00000e50| 6f 6d 6d 2e 63 6f 6e 6e | 65 63 74 22 0d 2d 2d 20 |omm.conn|ect".-- |
|00000e60| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 20 20 2d 2d |return f|alse --|
|00000e70| 20 66 6f 72 20 65 78 69 | 74 20 6d 6f 75 73 65 75 | for exi|t mouseu|
|00000e80| 70 0d 65 6e 64 20 69 66 | 0d 72 65 74 75 72 6e 20 |p.end if|.return |
|00000e90| 73 65 73 73 69 6f 6e 49 | 73 4f 70 65 6e 0d 65 6e |sessionI|sOpen.en|
|00000ea0| 64 20 63 68 65 63 6b 56 | 61 78 0d 0d 66 75 6e 63 |d checkV|ax..func|
|00000eb0| 74 69 6f 6e 20 63 61 6c | 6c 56 61 78 20 63 6d 64 |tion cal|lVax cmd|
|00000ec0| 0d 67 6c 6f 62 61 6c 20 | 56 61 78 50 72 6f 6d 70 |.global |VaxPromp|
|00000ed0| 74 0d 2d 2d 20 67 65 6e | 65 72 61 6c 20 72 6f 75 |t.-- gen|eral rou|
|00000ee0| 74 69 6e 65 20 74 6f 20 | 73 65 6e 64 20 61 20 63 |tine to |send a c|
|00000ef0| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 74 6f 20 68 |ommand l|ine to h|
|00000f00| 6f 73 74 20 61 6e 64 20 | 72 65 74 75 72 6e 0d 2d |ost and |return.-|
|00000f10| 2d 20 74 68 65 20 72 65 | 73 75 6c 74 73 20 75 70 |- the re|sults up|
|00000f20| 20 74 6f 20 74 68 65 20 | 56 61 78 50 72 6f 6d 70 | to the |VaxPromp|
|00000f30| 74 0d 69 66 20 63 68 65 | 63 6b 76 61 78 28 29 20 |t.if che|ckvax() |
|00000f40| 69 73 20 66 61 6c 73 65 | 20 74 68 65 6e 20 72 65 |is false| then re|
|00000f50| 74 75 72 6e 20 65 6d 70 | 74 79 0d 73 65 6e 64 6c |turn emp|ty.sendl|
|00000f60| 69 6e 65 20 63 6d 64 20 | 2d 2d 20 6d 61 79 20 62 |ine cmd |-- may b|
|00000f70| 65 20 65 6d 70 74 79 20 | 63 6d 64 0d 69 66 20 63 |e empty |cmd.if c|
|00000f80| 6d 64 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |md is no|t empty |
|00000f90| 74 68 65 6e 20 c2 0d 67 | 65 74 20 72 65 63 76 54 |then ..g|et recvT|
|00000fa0| 6f 28 72 65 74 75 72 6e | 2c 33 30 30 2c 65 6d 70 |o(return|,300,emp|
|00000fb0| 74 79 29 20 20 2d 2d 20 | 65 61 74 20 74 68 65 20 |ty) -- |eat the |
|00000fc0| 65 63 68 6f 65 64 20 63 | 6d 64 0d 70 75 74 20 65 |echoed c|md.put e|
|00000fd0| 6d 70 74 79 20 69 6e 74 | 6f 20 69 6e 62 69 6e 0d |mpty int|o inbin.|
|00000fe0| 72 65 70 65 61 74 20 66 | 6f 72 65 76 65 72 0d 73 |repeat f|orever.s|
|00000ff0| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 62 75 73 |et curso|r to bus|
|00001000| 79 0d 70 75 74 20 72 65 | 63 76 54 6f 28 65 6d 70 |y.put re|cvTo(emp|
|00001010| 74 79 2c 33 30 30 2c 65 | 6d 70 74 79 29 20 69 6e |ty,300,e|mpty) in|
|00001020| 74 6f 20 62 75 6e 63 68 | 0d 69 66 20 62 75 6e 63 |to bunch|.if bunc|
|00001030| 68 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 0d |h is emp|ty then.|
|00001040| 72 65 74 75 72 6e 20 69 | 6e 62 69 6e 0d 65 6c 73 |return i|nbin.els|
|00001050| 65 20 69 66 20 62 75 6e | 63 68 20 63 6f 6e 74 61 |e if bun|ch conta|
|00001060| 69 6e 73 20 56 61 78 50 | 72 6f 6d 70 74 20 74 68 |ins VaxP|rompt th|
|00001070| 65 6e 0d 67 65 74 20 6f | 66 66 73 65 74 28 20 56 |en.get o|ffset( V|
|00001080| 61 78 50 72 6f 6d 70 74 | 2c 20 62 75 6e 63 68 29 |axPrompt|, bunch)|
|00001090| 0d 70 75 74 20 63 68 61 | 72 20 31 20 74 6f 20 69 |.put cha|r 1 to i|
|000010a0| 74 2d 31 20 6f 66 20 62 | 75 6e 63 68 20 61 66 74 |t-1 of b|unch aft|
|000010b0| 65 72 20 69 6e 62 69 6e | 0d 72 65 74 75 72 6e 20 |er inbin|.return |
|000010c0| 69 6e 62 69 6e 0d 65 6c | 73 65 0d 70 75 74 20 62 |inbin.el|se.put b|
|000010d0| 75 6e 63 68 20 61 66 74 | 65 72 20 69 6e 62 69 6e |unch aft|er inbin|
|000010e0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|000010f0| 61 74 0d 65 6e 64 20 63 | 61 6c 6c 56 61 78 0d 0d |at.end c|allVax..|
|00001100| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 79 53 63 72 6f |..functi|on yScro|
|00001110| 6c 6c 42 6f 78 20 61 66 | 69 72 73 74 2c 61 70 72 |llBox af|irst,apr|
|00001120| 6f 6d 70 74 2c 61 62 69 | 6e 2c 61 62 75 74 74 6f |ompt,abi|n,abutto|
|00001130| 6e 0d 2d 2d 20 66 69 78 | 20 73 63 72 6f 6c 6c 42 |n.-- fix| scrollB|
|00001140| 6f 78 20 74 6f 20 64 72 | 6f 70 20 74 68 65 20 22 |ox to dr|op the "|
|00001150| 23 23 2c 22 20 61 74 20 | 66 72 6f 6e 74 20 6f 66 |##," at |front of|
|00001160| 20 69 74 65 6d 0d 70 75 | 74 20 78 53 63 72 6f 6c | item.pu|t xScrol|
|00001170| 6c 42 6f 78 28 61 66 69 | 72 73 74 2c 61 70 72 6f |lBox(afi|rst,apro|
|00001180| 6d 70 74 2c 61 62 69 6e | 2c 61 62 75 74 74 6f 6e |mpt,abin|,abutton|
|00001190| 29 20 69 6e 74 6f 20 69 | 74 6d 0d 69 66 20 69 74 |) into i|tm.if it|
|000011a0| 6d 20 69 73 20 61 62 75 | 74 74 6f 6e 20 74 68 65 |m is abu|tton the|
|000011b0| 6e 20 72 65 74 75 72 6e | 20 69 74 6d 0d 67 65 74 |n return| itm.get|
|000011c0| 20 6f 66 66 73 65 74 28 | 20 22 2c 22 2c 20 69 74 | offset(| ",", it|
|000011d0| 6d 20 29 0d 69 66 20 69 | 74 20 69 73 20 6e 6f 74 |m ).if i|t is not|
|000011e0| 20 7a 65 72 6f 20 74 68 | 65 6e 20 64 65 6c 65 74 | zero th|en delet|
|000011f0| 65 20 63 68 61 72 20 31 | 20 74 6f 20 69 74 20 6f |e char 1| to it o|
|00001200| 66 20 69 74 6d 0d 72 65 | 74 75 72 6e 20 69 74 6d |f itm.re|turn itm|
|00001210| 0d 65 6e 64 20 79 53 63 | 72 6f 6c 6c 42 6f 78 0d |.end ySc|rollBox.|
|00001220| 0d 6f 6e 20 67 65 74 43 | 75 72 44 69 72 0d 67 6c |.on getC|urDir.gl|
|00001230| 6f 62 61 6c 20 63 75 72 | 44 69 72 0d 70 75 74 20 |obal cur|Dir.put |
|00001240| 43 61 6c 6c 56 61 78 28 | 22 53 68 6f 77 20 64 65 |CallVax(|"Show de|
|00001250| 66 61 75 6c 74 22 29 20 | 69 6e 74 6f 20 6e 65 77 |fault") |into new|
|00001260| 44 69 72 0d 70 75 74 20 | 77 6f 72 64 20 31 20 6f |Dir.put |word 1 o|
|00001270| 66 20 6c 69 6e 65 20 32 | 20 6f 66 20 6e 65 77 44 |f line 2| of newD|
|00001280| 69 72 20 69 6e 74 6f 20 | 6e 65 77 44 69 72 0d 67 |ir into |newDir.g|
|00001290| 65 74 20 6f 66 66 73 65 | 74 20 28 22 3a 22 2c 20 |et offse|t (":", |
|000012a0| 6e 65 77 44 69 72 29 0d | 69 66 20 69 74 20 69 73 |newDir).|if it is|
|000012b0| 20 6e 6f 74 20 7a 65 72 | 6f 20 74 68 65 6e 20 64 | not zer|o then d|
|000012c0| 65 6c 65 74 65 20 63 68 | 61 72 20 31 20 74 6f 20 |elete ch|ar 1 to |
|000012d0| 69 74 20 6f 66 20 6e 65 | 77 44 69 72 0d 69 66 20 |it of ne|wDir.if |
|000012e0| 6e 65 77 64 69 72 20 ad | 20 63 75 72 64 69 72 20 |newdir .| curdir |
|000012f0| 74 68 65 6e 0d 70 75 74 | 20 6e 65 77 64 69 72 20 |then.put| newdir |
|00001300| 69 6e 74 6f 20 63 75 72 | 64 69 72 0d 64 69 72 43 |into cur|dir.dirC|
|00001310| 68 61 6e 67 65 64 0d 65 | 6e 64 20 69 66 0d 65 6e |hanged.e|nd if.en|
|00001320| 64 20 67 65 74 43 75 72 | 44 69 72 0d 0d 6f 6e 20 |d getCur|Dir..on |
|00001330| 67 65 74 44 69 72 4c 69 | 73 74 0d 67 6c 6f 62 61 |getDirLi|st.globa|
|00001340| 6c 20 64 69 72 4c 69 73 | 74 0d 70 75 74 20 65 6d |l dirLis|t.put em|
|00001350| 70 74 79 20 69 6e 74 6f | 20 64 69 72 4c 69 73 74 |pty into| dirList|
|00001360| 0d 67 65 74 20 63 61 6c | 6c 56 61 78 28 22 73 65 |.get cal|lVax("se|
|00001370| 74 20 64 65 66 61 75 6c | 74 20 73 79 73 24 6c 6f |t defaul|t sys$lo|
|00001380| 67 69 6e 3a 22 29 0d 67 | 65 74 43 75 72 44 69 72 |gin:").g|etCurDir|
|00001390| 0d 70 75 74 20 63 61 6c | 6c 56 61 78 28 22 64 69 |.put cal|lVax("di|
|000013a0| 72 65 63 74 6f 72 79 2f | 74 6f 74 61 6c 20 5b 2e |rectory/|total [.|
|000013b0| 2e 2e 5d 22 29 20 69 6e | 74 6f 20 64 6c 69 73 74 |..]") in|to dlist|
|000013c0| 20 2d 2d 20 6f 6e 6c 79 | 20 67 6f 6f 64 20 61 74 | -- only| good at|
|000013d0| 20 74 6f 70 20 64 69 72 | 0d 72 65 70 65 61 74 20 | top dir|.repeat |
|000013e0| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 6e 75 |with i =| 1 to nu|
|000013f0| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 69 6e |mber of |lines in|
|00001400| 20 64 6c 69 73 74 0d 70 | 75 74 20 6c 69 6e 65 20 | dlist.p|ut line |
|00001410| 69 20 6f 66 20 64 6c 69 | 73 74 20 69 6e 74 6f 20 |i of dli|st into |
|00001420| 69 6c 69 6e 65 0d 69 66 | 20 69 6c 69 6e 65 20 63 |iline.if| iline c|
|00001430| 6f 6e 74 61 69 6e 73 20 | 22 44 69 72 65 63 74 6f |ontains |"Directo|
|00001440| 72 79 22 20 74 68 65 6e | 0d 70 75 74 20 77 6f 72 |ry" then|.put wor|
|00001450| 64 20 32 20 6f 66 20 69 | 6c 69 6e 65 20 69 6e 74 |d 2 of i|line int|
|00001460| 6f 20 69 6c 69 6e 65 0d | 67 65 74 20 6f 66 66 73 |o iline.|get offs|
|00001470| 65 74 20 28 22 3a 22 2c | 20 69 6c 69 6e 65 29 0d |et (":",| iline).|
|00001480| 69 66 20 69 74 20 69 73 | 20 6e 6f 74 20 7a 65 72 |if it is| not zer|
|00001490| 6f 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 63 68 |o then d|elete ch|
|000014a0| 61 72 20 31 20 74 6f 20 | 69 74 20 6f 66 20 69 6c |ar 1 to |it of il|
|000014b0| 69 6e 65 0d 70 75 74 20 | 69 6c 69 6e 65 20 26 20 |ine.put |iline & |
|000014c0| 72 65 74 75 72 6e 20 61 | 66 74 65 72 20 64 69 72 |return a|fter dir|
|000014d0| 4c 69 73 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |List.end| if.end |
|000014e0| 72 65 70 65 61 74 0d 70 | 75 74 20 64 69 72 4c 69 |repeat.p|ut dirLi|
|000014f0| 73 74 20 69 6e 74 6f 20 | 62 6b 67 6e 64 20 66 69 |st into |bkgnd fi|
|00001500| 65 6c 64 20 22 64 69 72 | 6c 69 73 74 22 20 6f 66 |eld "dir|list" of|
|00001510| 20 63 61 72 64 20 22 44 | 61 74 61 2e 56 61 78 22 | card "D|ata.Vax"|
|00001520| 0d 65 6e 64 20 67 65 74 | 44 69 72 4c 69 73 74 0d |.end get|DirList.|
|00001530| 0d 6f 6e 20 6d 61 6b 65 | 44 69 72 0d 67 6c 6f 62 |.on make|Dir.glob|
|00001540| 61 6c 20 64 69 72 4c 69 | 73 74 2c 20 63 75 72 44 |al dirLi|st, curD|
|00001550| 69 72 0d 61 73 6b 20 22 | 4e 65 77 20 64 69 72 65 |ir.ask "|New dire|
|00001560| 63 74 6f 72 79 20 6e 61 | 6d 65 3f 22 0d 69 66 20 |ctory na|me?".if |
|00001570| 69 74 20 69 73 20 65 6d | 70 74 79 20 74 68 65 6e |it is em|pty then|
|00001580| 20 65 78 69 74 20 6d 61 | 6b 65 44 69 72 0d 70 75 | exit ma|keDir.pu|
|00001590| 74 20 69 74 20 69 6e 74 | 6f 20 73 75 62 64 0d 69 |t it int|o subd.i|
|000015a0| 66 20 6e 6f 74 20 28 63 | 68 61 72 20 31 20 6f 66 |f not (c|har 1 of|
|000015b0| 20 73 75 62 64 20 69 73 | 20 22 5b 22 29 20 74 68 | subd is| "[") th|
|000015c0| 65 6e 20 70 75 74 20 22 | 5b 2e 22 26 73 75 62 64 |en put "|[."&subd|
|000015d0| 26 22 5d 22 20 69 6e 74 | 6f 20 73 75 62 64 0d 67 |&"]" int|o subd.g|
|000015e0| 65 74 20 63 61 6c 6c 56 | 61 78 28 22 43 72 65 61 |et callV|ax("Crea|
|000015f0| 74 65 2f 64 69 72 20 22 | 26 73 75 62 64 29 0d 67 |te/dir "|&subd).g|
|00001600| 65 74 20 63 61 6c 6c 56 | 61 78 28 22 53 65 74 20 |et callV|ax("Set |
|00001610| 64 65 66 61 75 6c 74 20 | 22 26 73 75 62 64 29 0d |default |"&subd).|
|00001620| 2d 2d 70 75 74 20 43 61 | 6c 6c 56 61 78 28 22 53 |--put Ca|llVax("S|
|00001630| 68 6f 77 20 64 65 66 61 | 75 6c 74 22 29 20 69 6e |how defa|ult") in|
|00001640| 74 6f 20 64 6c 69 73 74 | 0d 2d 2d 70 75 74 20 77 |to dlist|.--put w|
|00001650| 6f 72 64 20 31 20 6f 66 | 20 6c 69 6e 65 20 32 20 |ord 1 of| line 2 |
|00001660| 6f 66 20 64 6c 69 73 74 | 20 69 6e 74 6f 20 69 6c |of dlist| into il|
|00001670| 69 6e 65 0d 2d 2d 67 65 | 74 20 6f 66 66 73 65 74 |ine.--ge|t offset|
|00001680| 20 28 22 3a 22 2c 20 69 | 6c 69 6e 65 29 0d 2d 2d | (":", i|line).--|
|00001690| 69 66 20 69 74 20 69 73 | 20 6e 6f 74 20 7a 65 72 |if it is| not zer|
|000016a0| 6f 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 63 68 |o then d|elete ch|
|000016b0| 61 72 20 31 20 74 6f 20 | 69 74 20 6f 66 20 69 6c |ar 1 to |it of il|
|000016c0| 69 6e 65 0d 2d 2d 70 75 | 74 20 69 6c 69 6e 65 20 |ine.--pu|t iline |
|000016d0| 26 20 72 65 74 75 72 6e | 20 61 66 74 65 72 20 64 |& return| after d|
|000016e0| 69 72 4c 69 73 74 0d 67 | 65 74 43 75 72 44 69 72 |irList.g|etCurDir|
|000016f0| 0d 70 75 74 20 63 75 72 | 44 69 72 20 26 20 72 65 |.put cur|Dir & re|
|00001700| 74 75 72 6e 20 61 66 74 | 65 72 20 64 69 72 4c 69 |turn aft|er dirLi|
|00001710| 73 74 0d 70 75 74 20 64 | 69 72 4c 69 73 74 20 69 |st.put d|irList i|
|00001720| 6e 74 6f 20 62 6b 67 6e | 64 20 66 69 65 6c 64 20 |nto bkgn|d field |
|00001730| 22 64 69 72 6c 69 73 74 | 22 20 6f 66 20 63 61 72 |"dirlist|" of car|
|00001740| 64 20 22 44 61 74 61 2e | 56 61 78 22 0d 65 6e 64 |d "Data.|Vax".end|
|00001750| 20 6d 61 6b 65 44 69 72 | 0d 0d 6f 6e 20 64 69 72 | makeDir|..on dir|
|00001760| 43 68 61 6e 67 65 64 0d | 67 6c 6f 62 61 6c 20 63 |Changed.|global c|
|00001770| 75 72 44 69 72 2c 20 6e | 65 65 64 56 61 78 44 69 |urDir, n|eedVaxDi|
|00001780| 72 2c 20 76 61 78 46 69 | 6c 65 4c 69 73 74 0d 70 |r, vaxFi|leList.p|
|00001790| 75 74 20 63 75 72 44 69 | 72 20 69 6e 74 6f 20 62 |ut curDi|r into b|
|000017a0| 6b 67 6e 64 20 66 69 65 | 6c 64 20 22 43 75 72 72 |kgnd fie|ld "Curr|
|000017b0| 65 6e 74 44 69 72 22 20 | 6f 66 20 63 61 72 64 20 |entDir" |of card |
|000017c0| 22 44 61 74 61 2e 56 61 | 78 22 0d 70 75 74 20 65 |"Data.Va|x".put e|
|000017d0| 6d 70 74 79 20 69 6e 74 | 6f 20 62 6b 67 6e 64 20 |mpty int|o bkgnd |
|000017e0| 66 69 65 6c 64 20 22 46 | 69 6c 65 4c 69 73 74 22 |field "F|ileList"|
|000017f0| 20 6f 66 20 63 61 72 64 | 20 22 44 61 74 61 2e 56 | of card| "Data.V|
|00001800| 61 78 22 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |ax".put |empty in|
|00001810| 74 6f 20 76 61 78 46 69 | 6c 65 4c 69 73 74 0d 70 |to vaxFi|leList.p|
|00001820| 75 74 20 74 72 75 65 20 | 69 6e 74 6f 20 6e 65 65 |ut true |into nee|
|00001830| 64 56 61 78 44 69 72 0d | 65 6e 64 20 64 69 72 43 |dVaxDir.|end dirC|
|00001840| 68 61 6e 67 65 64 0d 0d | 6f 6e 20 63 68 61 6e 67 |hanged..|on chang|
|00001850| 65 44 69 72 54 6f 20 6e | 65 77 44 69 72 0d 67 6c |eDirTo n|ewDir.gl|
|00001860| 6f 62 61 6c 20 63 75 72 | 44 69 72 0d 70 75 74 20 |obal cur|Dir.put |
|00001870| 6e 65 77 44 69 72 20 69 | 6e 74 6f 20 63 75 72 44 |newDir i|nto curD|
|00001880| 69 72 0d 67 65 74 20 63 | 61 6c 6c 56 61 78 28 22 |ir.get c|allVax("|
|00001890| 53 65 74 20 64 65 66 61 | 75 6c 74 20 22 20 26 20 |Set defa|ult " & |
|000018a0| 63 75 72 44 69 72 29 0d | 64 69 72 43 68 61 6e 67 |curDir).|dirChang|
|000018b0| 65 64 0d 65 6e 64 20 63 | 68 61 6e 67 65 44 69 72 |ed.end c|hangeDir|
|000018c0| 54 6f 0d 0d 6f 6e 20 63 | 68 61 6e 67 65 44 69 72 |To..on c|hangeDir|
|000018d0| 0d 67 6c 6f 62 61 6c 20 | 64 69 72 4c 69 73 74 2c |.global |dirList,|
|000018e0| 63 75 72 44 69 72 2c 6e | 65 65 64 56 61 78 44 69 |curDir,n|eedVaxDi|
|000018f0| 72 0d 69 66 20 64 69 72 | 6c 69 73 74 20 69 73 20 |r.if dir|list is |
|00001900| 65 6d 70 74 79 20 74 68 | 65 6e 20 67 65 74 44 69 |empty th|en getDi|
|00001910| 72 4c 69 73 74 0d 2d 2d | 20 73 65 6c 65 63 74 20 |rList.--| select |
|00001920| 63 75 72 44 69 72 20 66 | 72 6f 6d 20 44 69 72 4c |curDir f|rom DirL|
|00001930| 69 73 74 20 61 73 20 22 | 66 69 72 73 74 22 0d 67 |ist as "|first".g|
|00001940| 65 74 20 79 53 63 72 6f | 6c 6c 42 6f 78 28 30 2c |et yScro|llBox(0,|
|00001950| 22 43 68 6f 6f 73 65 20 | 64 69 72 65 63 74 6f 72 |"Choose |director|
|00001960| 79 3a 22 2c 64 69 72 4c | 69 73 74 2c 22 4e 65 77 |y:",dirL|ist,"New|
|00001970| 20 44 69 72 65 63 74 6f | 72 79 22 29 0d 69 66 20 | Directo|ry").if |
|00001980| 69 74 20 69 73 20 65 6d | 70 74 79 20 74 68 65 6e |it is em|pty then|
|00001990| 20 65 78 69 74 20 63 68 | 61 6e 67 65 44 69 72 0d | exit ch|angeDir.|
|000019a0| 69 66 20 69 74 20 69 73 | 20 22 4e 65 77 20 44 69 |if it is| "New Di|
|000019b0| 72 65 63 74 6f 72 79 22 | 20 74 68 65 6e 0d 6d 61 |rectory"| then.ma|
|000019c0| 6b 65 44 69 72 20 2d 2d | 20 6e 65 65 64 20 74 6f |keDir --| need to|
|000019d0| 20 6b 6e 6f 77 20 69 66 | 20 6d 61 6b 65 44 69 72 | know if| makeDir|
|000019e0| 20 63 61 6e 63 65 6c 0d | 65 78 69 74 20 63 68 61 | cancel.|exit cha|
|000019f0| 6e 67 65 44 69 72 0d 65 | 6e 64 20 69 66 0d 63 68 |ngeDir.e|nd if.ch|
|00001a00| 61 6e 67 65 44 69 72 54 | 6f 20 69 74 0d 65 6e 64 |angeDirT|o it.end|
|00001a10| 20 63 68 61 6e 67 65 44 | 69 72 0d 0d 6f 6e 20 66 | changeD|ir..on f|
|00001a20| 69 6c 65 73 4c 69 73 74 | 65 64 0d 67 6c 6f 62 61 |ilesList|ed.globa|
|00001a30| 6c 20 6e 65 65 64 56 61 | 78 44 69 72 2c 20 76 61 |l needVa|xDir, va|
|00001a40| 78 46 69 6c 65 4c 69 73 | 74 2c 20 63 75 72 44 69 |xFileLis|t, curDi|
|00001a50| 72 0d 70 75 74 20 63 75 | 72 44 69 72 20 69 6e 74 |r.put cu|rDir int|
|00001a60| 6f 20 62 6b 67 6e 64 20 | 66 69 65 6c 64 20 22 43 |o bkgnd |field "C|
|00001a70| 75 72 72 65 6e 74 44 69 | 72 22 20 6f 66 20 63 61 |urrentDi|r" of ca|
|00001a80| 72 64 20 22 44 61 74 61 | 2e 56 61 78 22 0d 70 75 |rd "Data|.Vax".pu|
|00001a90| 74 20 76 61 78 46 69 6c | 65 4c 69 73 74 20 69 6e |t vaxFil|eList in|
|00001aa0| 74 6f 20 62 6b 67 6e 64 | 20 66 69 65 6c 64 20 22 |to bkgnd| field "|
|00001ab0| 46 69 6c 65 4c 69 73 74 | 22 20 6f 66 20 63 61 72 |FileList|" of car|
|00001ac0| 64 20 22 44 61 74 61 2e | 56 61 78 22 0d 70 75 74 |d "Data.|Vax".put|
|00001ad0| 20 66 61 6c 73 65 20 69 | 6e 74 6f 20 6e 65 65 64 | false i|nto need|
|00001ae0| 56 61 78 44 69 72 0d 65 | 6e 64 20 66 69 6c 65 73 |VaxDir.e|nd files|
|00001af0| 4c 69 73 74 65 64 0d 0d | 6f 6e 20 6c 69 73 74 46 |Listed..|on listF|
|00001b00| 69 6c 65 73 0d 67 6c 6f | 62 61 6c 20 76 61 78 46 |iles.glo|bal vaxF|
|00001b10| 69 6c 65 4c 69 73 74 2c | 20 6e 65 65 64 56 61 78 |ileList,| needVax|
|00001b20| 44 69 72 2c 20 63 75 72 | 44 69 72 0d 69 66 20 28 |Dir, cur|Dir.if (|
|00001b30| 76 61 78 46 69 6c 65 4c | 69 73 74 20 69 73 20 65 |vaxFileL|ist is e|
|00001b40| 6d 70 74 79 29 20 6f 72 | 20 28 6e 65 65 64 56 61 |mpty) or| (needVa|
|00001b50| 78 44 69 72 20 69 73 20 | 74 72 75 65 29 20 74 68 |xDir is |true) th|
|00001b60| 65 6e 0d 2d 2d 70 75 74 | 20 63 61 6c 6c 56 61 78 |en.--put| callVax|
|00001b70| 28 20 22 44 69 72 65 63 | 74 6f 72 79 2f 6e 6f 74 |( "Direc|tory/not|
|00001b80| 72 61 69 6c 2f 63 6f 6c | 3d 31 22 29 20 69 6e 74 |rail/col|=1") int|
|00001b90| 6f 20 69 6e 62 69 6e 0d | 70 75 74 20 63 61 6c 6c |o inbin.|put call|
|00001ba0| 56 61 78 28 20 22 44 69 | 72 65 63 74 6f 72 79 2f |Vax( "Di|rectory/|
|00001bb0| 6e 6f 74 72 61 69 6c 2f | 73 69 7a 65 2f 64 61 74 |notrail/|size/dat|
|00001bc0| 65 22 29 20 69 6e 74 6f | 20 69 6e 62 69 6e 0d 64 |e") into| inbin.d|
|00001bd0| 65 6c 65 74 65 20 6c 69 | 6e 65 20 31 20 6f 66 20 |elete li|ne 1 of |
|00001be0| 69 6e 62 69 6e 20 20 2d | 2d 20 65 6d 70 74 79 0d |inbin -|- empty.|
|00001bf0| 70 75 74 20 77 6f 72 64 | 20 32 20 6f 66 20 6c 69 |put word| 2 of li|
|00001c00| 6e 65 20 31 20 6f 66 20 | 69 6e 62 69 6e 20 69 6e |ne 1 of |inbin in|
|00001c10| 74 6f 20 63 75 72 44 69 | 72 0d 67 65 74 20 6f 66 |to curDi|r.get of|
|00001c20| 66 73 65 74 20 28 22 3a | 22 2c 20 63 75 72 44 69 |fset (":|", curDi|
|00001c30| 72 29 0d 69 66 20 69 74 | 20 69 73 20 6e 6f 74 20 |r).if it| is not |
|00001c40| 7a 65 72 6f 20 74 68 65 | 6e 20 64 65 6c 65 74 65 |zero the|n delete|
|00001c50| 20 63 68 61 72 20 31 20 | 74 6f 20 69 74 20 6f 66 | char 1 |to it of|
|00001c60| 20 63 75 72 44 69 72 0d | 64 65 6c 65 74 65 20 6c | curDir.|delete l|
|00001c70| 69 6e 65 20 31 20 6f 66 | 20 69 6e 62 69 6e 20 20 |ine 1 of| inbin |
|00001c80| 2d 2d 20 70 61 74 68 0d | 64 65 6c 65 74 65 20 6c |-- path.|delete l|
|00001c90| 69 6e 65 20 31 20 6f 66 | 20 69 6e 62 69 6e 20 20 |ine 1 of| inbin |
|00001ca0| 2d 2d 20 65 6d 70 74 79 | 0d 70 75 74 20 6e 75 6d |-- empty|.put num|
|00001cb0| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 20 |ber of l|ines in |
|00001cc0| 69 6e 62 69 6e 20 69 6e | 74 6f 20 6e 0d 72 65 70 |inbin in|to n.rep|
|00001cd0| 65 61 74 20 77 69 74 68 | 20 69 3d 20 31 20 74 6f |eat with| i= 1 to|
|00001ce0| 20 6e 0d 70 75 74 20 22 | 20 22 20 62 65 66 6f 72 | n.put "| " befor|
|00001cf0| 65 20 6c 69 6e 65 20 69 | 20 6f 66 20 69 6e 62 69 |e line i| of inbi|
|00001d00| 6e 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 70 75 74 |n.end re|peat.put|
|00001d10| 20 69 6e 62 69 6e 20 69 | 6e 74 6f 20 76 61 78 46 | inbin i|nto vaxF|
|00001d20| 69 6c 65 4c 69 73 74 0d | 66 69 6c 65 73 4c 69 73 |ileList.|filesLis|
|00001d30| 74 65 64 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 6c |ted.end |if.end l|
|00001d40| 69 73 74 46 69 6c 65 73 | 0d 0d 0d 66 75 6e 63 74 |istFiles|...funct|
|00001d50| 69 6f 6e 20 56 61 78 53 | 74 64 47 65 74 32 20 2d |ion VaxS|tdGet2 -|
|00001d60| 2d 20 64 6f 65 73 6e 27 | 74 20 77 6f 72 6b 20 79 |- doesn'|t work y|
|00001d70| 65 74 0d 67 6c 6f 62 61 | 6c 20 6e 65 65 64 56 61 |et.globa|l needVa|
|00001d80| 78 44 69 72 2c 76 61 78 | 46 69 6c 65 4c 69 73 74 |xDir,vax|FileList|
|00001d90| 2c 63 75 72 44 69 72 4e | 61 6d 65 2c 63 75 72 44 |,curDirN|ame,curD|
|00001da0| 69 72 2c 20 66 69 6c 65 | 6e 61 6d 65 0d 2d 2d 20 |ir, file|name.-- |
|00001db0| 22 73 74 61 6e 64 61 72 | 64 20 67 65 74 22 20 66 |"standar|d get" f|
|00001dc0| 6f 72 20 76 61 78 0d 70 | 75 73 68 20 63 61 72 64 |or vax.p|ush card|
|00001dd0| 0d 67 6f 20 74 6f 20 63 | 61 72 64 20 22 44 61 74 |.go to c|ard "Dat|
|00001de0| 61 2e 56 61 78 22 0d 6c | 69 73 74 46 69 6c 65 73 |a.Vax".l|istFiles|
|00001df0| 0d 2d 2d 20 48 4f 57 20 | 74 6f 20 77 61 69 74 20 |.-- HOW |to wait |
|00001e00| 66 6f 72 20 75 73 65 72 | 20 74 6f 20 68 69 74 20 |for user| to hit |
|00001e10| 22 6f 6b 61 79 22 20 3f | 3f 0d 2d 2d 20 74 68 69 |"okay" ?|?.-- thi|
|00001e20| 73 20 73 63 72 69 70 74 | 20 63 6f 6e 74 69 6e 75 |s script| continu|
|00001e30| 65 73 20 70 61 73 74 20 | 68 65 72 65 2e 2e 2e 0d |es past |here....|
|00001e40| 72 65 74 75 72 6e 20 66 | 69 6c 65 6e 61 6d 65 20 |return f|ilename |
|00001e50| 2d 2d 20 66 72 6f 6d 20 | 66 69 6c 65 4c 69 73 74 |-- from |fileList|
|00001e60| 20 63 68 6f 69 63 65 0d | 65 6e 64 20 76 61 78 53 | choice.|end vaxS|
|00001e70| 74 64 47 65 74 32 0d 0d | 66 75 6e 63 74 69 6f 6e |tdGet2..|function|
|00001e80| 20 56 61 78 53 74 64 47 | 65 74 0d 67 6c 6f 62 61 | VaxStdG|et.globa|
|00001e90| 6c 20 6e 65 65 64 56 61 | 78 44 69 72 2c 76 61 78 |l needVa|xDir,vax|
|00001ea0| 46 69 6c 65 4c 69 73 74 | 2c 63 75 72 44 69 72 4e |FileList|,curDirN|
|00001eb0| 61 6d 65 2c 63 75 72 44 | 69 72 0d 2d 2d 20 22 73 |ame,curD|ir.-- "s|
|00001ec0| 74 61 6e 64 61 72 64 20 | 67 65 74 22 20 66 6f 72 |tandard |get" for|
|00001ed0| 20 76 61 78 0d 69 66 20 | 63 68 65 63 6b 56 61 78 | vax.if |checkVax|
|00001ee0| 28 29 20 69 73 20 66 61 | 6c 73 65 20 74 68 65 6e |() is fa|lse then|
|00001ef0| 20 72 65 74 75 72 6e 20 | 65 6d 70 74 79 0d 6c 69 | return |empty.li|
|00001f00| 73 74 46 69 6c 65 73 0d | 70 75 74 20 79 53 63 72 |stFiles.|put yScr|
|00001f10| 6f 6c 6c 42 6f 78 28 30 | 2c 63 75 72 44 69 72 4e |ollBox(0|,curDirN|
|00001f20| 61 6d 65 2c 56 61 78 46 | 69 6c 65 4c 69 73 74 2c |ame,VaxF|ileList,|
|00001f30| 22 43 68 61 6e 67 65 20 | 44 69 72 22 29 20 69 6e |"Change |Dir") in|
|00001f40| 74 6f 20 66 69 6c 65 6e | 61 6d 65 0d 69 66 20 66 |to filen|ame.if f|
|00001f50| 69 6c 65 6e 61 6d 65 20 | 69 73 20 22 43 68 61 6e |ilename |is "Chan|
|00001f60| 67 65 20 44 69 72 22 20 | 74 68 65 6e 0d 63 68 61 |ge Dir" |then.cha|
|00001f70| 6e 67 65 44 69 72 0d 72 | 65 74 75 72 6e 20 56 61 |ngeDir.r|eturn Va|
|00001f80| 78 53 74 64 47 65 74 28 | 29 20 20 2d 2d 20 69 73 |xStdGet(|) -- is|
|00001f90| 20 72 65 63 75 72 73 69 | 6f 6e 20 6c 65 67 61 6c | recursi|on legal|
|00001fa0| 20 69 6e 20 48 43 20 3f | 3f 0d 65 6c 73 65 20 69 | in HC ?|?.else i|
|00001fb0| 66 20 66 69 6c 65 6e 61 | 6d 65 20 63 6f 6e 74 61 |f filena|me conta|
|00001fc0| 69 6e 73 20 22 2e 44 49 | 52 3b 22 20 74 68 65 6e |ins ".DI|R;" then|
|00001fd0| 20 20 2d 2d 20 64 6f 20 | 61 20 64 6f 77 6e 0d 67 | -- do |a down.g|
|00001fe0| 65 74 20 6f 66 66 73 65 | 74 28 22 2e 44 49 52 22 |et offse|t(".DIR"|
|00001ff0| 2c 20 66 69 6c 65 6e 61 | 6d 65 29 0d 70 75 74 20 |, filena|me).put |
|00002000| 63 68 61 72 20 31 20 74 | 6f 20 69 74 2d 31 20 6f |char 1 t|o it-1 o|
|00002010| 66 20 66 69 6c 65 6e 61 | 6d 65 20 69 6e 74 6f 20 |f filena|me into |
|00002020| 66 69 6c 65 6e 61 6d 65 | 0d 67 65 74 20 63 61 6c |filename|.get cal|
|00002030| 6c 56 61 78 28 22 44 6f | 77 6e 20 22 20 26 20 66 |lVax("Do|wn " & f|
|00002040| 69 6c 65 6e 61 6d 65 29 | 0d 70 75 74 20 77 6f 72 |ilename)|.put wor|
|00002050| 64 20 34 20 6f 66 20 6c | 69 6e 65 20 32 20 6f 66 |d 4 of l|ine 2 of|
|00002060| 20 69 74 20 69 6e 74 6f | 20 63 75 72 44 69 72 0d | it into| curDir.|
|00002070| 64 69 72 43 68 61 6e 67 | 65 64 0d 72 65 74 75 72 |dirChang|ed.retur|
|00002080| 6e 20 56 61 78 53 74 64 | 47 65 74 28 29 20 20 2d |n VaxStd|Get() -|
|00002090| 2d 20 69 73 20 72 65 63 | 75 72 73 69 6f 6e 20 6c |- is rec|ursion l|
|000020a0| 65 67 61 6c 20 69 6e 20 | 48 43 20 3f 3f 0d 65 6c |egal in |HC ??.el|
|000020b0| 73 65 0d 70 75 74 20 77 | 6f 72 64 20 31 20 6f 66 |se.put w|ord 1 of|
|000020c0| 20 66 69 6c 65 6e 61 6d | 65 20 69 6e 74 6f 20 66 | filenam|e into f|
|000020d0| 69 6c 65 6e 61 6d 65 20 | 2d 2d 20 64 72 6f 70 20 |ilename |-- drop |
|000020e0| 74 72 61 69 6c 69 6e 67 | 20 6a 75 6e 6b 0d 65 6e |trailing| junk.en|
|000020f0| 64 20 69 66 0d 72 65 74 | 75 72 6e 20 66 69 6c 65 |d if.ret|urn file|
|00002100| 6e 61 6d 65 0d 65 6e 64 | 20 76 61 78 53 74 64 47 |name.end| vaxStdG|
|00002110| 65 74 0d 0d 0d 6f 6e 20 | 74 65 78 74 54 6f 56 61 |et...on |textToVa|
|00002120| 78 20 61 74 65 78 74 2c | 20 66 6e 61 6d 65 0d 2d |x atext,| fname.-|
|00002130| 2d 20 73 65 6e 64 20 63 | 6f 6e 74 61 69 6e 65 72 |- send c|ontainer|
|00002140| 20 61 74 65 78 74 20 74 | 6f 20 76 61 78 0d 2d 2d | atext t|o vax.--|
|00002150| 20 61 73 73 75 6d 65 20 | 61 74 65 78 74 20 68 61 | assume |atext ha|
|00002160| 73 20 6c 69 6e 65 20 72 | 65 74 75 72 6e 73 20 69 |s line r|eturns i|
|00002170| 6e 20 70 6c 61 63 65 20 | 2d 2d 20 6e 6f 20 6c 6f |n place |-- no lo|
|00002180| 6e 67 20 6c 69 6e 65 73 | 20 21 0d 67 6c 6f 62 61 |ng lines| !.globa|
|00002190| 6c 20 6e 65 65 64 56 61 | 78 44 69 72 2c 20 66 69 |l needVa|xDir, fi|
|000021a0| 6c 65 6e 61 6d 65 0d 69 | 66 20 63 68 65 63 6b 56 |lename.i|f checkV|
|000021b0| 61 78 28 29 20 69 73 20 | 66 61 6c 73 65 20 74 68 |ax() is |false th|
|000021c0| 65 6e 20 65 78 69 74 20 | 74 65 78 74 54 6f 56 61 |en exit |textToVa|
|000021d0| 78 0d 2d 2d 69 66 20 6e | 6f 74 20 28 66 69 6c 65 |x.--if n|ot (file|
|000021e0| 6e 61 6d 65 20 63 6f 6e | 74 61 69 6e 73 20 22 2e |name con|tains ".|
|000021f0| 22 29 20 74 68 65 6e 20 | 70 75 74 20 22 2e 73 65 |") then |put ".se|
|00002200| 71 22 20 61 66 74 65 72 | 20 66 69 6c 65 6e 61 6d |q" after| filenam|
|00002210| 65 0d 69 66 20 66 6e 61 | 6d 65 20 69 73 20 65 6d |e.if fna|me is em|
|00002220| 70 74 79 20 74 68 65 6e | 0d 70 75 74 20 22 4d 79 |pty then|.put "My|
|00002230| 2e 53 65 71 22 20 69 6e | 74 6f 20 66 6e 61 6d 65 |.Seq" in|to fname|
|00002240| 0d 61 73 6b 20 22 48 6f | 73 74 20 66 69 6c 65 20 |.ask "Ho|st file |
|00002250| 6e 61 6d 65 3a 22 20 77 | 69 74 68 20 66 6e 61 6d |name:" w|ith fnam|
|00002260| 65 0d 69 66 20 69 74 20 | 69 73 20 65 6d 70 74 79 |e.if it |is empty|
|00002270| 20 74 68 65 6e 20 65 78 | 69 74 20 74 65 78 74 54 | then ex|it textT|
|00002280| 6f 56 61 78 0d 70 75 74 | 20 69 74 20 69 6e 74 6f |oVax.put| it into|
|00002290| 20 66 69 6c 65 6e 61 6d | 65 0d 65 6c 73 65 0d 70 | filenam|e.else.p|
|000022a0| 75 74 20 66 6e 61 6d 65 | 20 69 6e 74 6f 20 66 69 |ut fname| into fi|
|000022b0| 6c 65 6e 61 6d 65 0d 65 | 6e 64 20 69 66 0d 2d 2d |lename.e|nd if.--|
|000022c0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|000022d0| 20 31 20 74 6f 20 6c 65 | 6e 67 74 68 28 66 69 6c | 1 to le|ngth(fil|
|000022e0| 65 6e 61 6d 65 29 0d 69 | 66 20 63 68 61 72 20 69 |ename).i|f char i|
|000022f0| 20 6f 66 20 66 69 6c 65 | 6e 61 6d 65 20 3d 20 22 | of file|name = "|
|00002300| 20 22 20 74 68 65 6e 20 | 70 75 74 20 22 5f 22 20 | " then |put "_" |
|00002310| 69 6e 20 63 68 61 72 20 | 69 20 6f 66 20 66 69 6c |in char |i of fil|
|00002320| 65 6e 61 6d 65 0d 65 6e | 64 20 72 65 70 65 61 74 |ename.en|d repeat|
|00002330| 0d 2d 2d 20 20 74 75 72 | 6e 20 6f 66 66 20 65 63 |.-- tur|n off ec|
|00002340| 68 6f 20 26 20 73 65 6e | 64 20 74 68 65 20 64 61 |ho & sen|d the da|
|00002350| 74 61 20 21 6e 6f 74 65 | 2c 20 6e 65 65 64 20 2f |ta !note|, need /|
|00002360| 48 6f 73 74 53 79 6e 63 | 0d 70 75 74 20 22 53 65 |HostSync|.put "Se|
|00002370| 6e 64 69 6e 67 22 26 26 | 66 69 6c 65 6e 61 6d 65 |nding"&&|filename|
|00002380| 26 26 22 74 6f 20 56 61 | 78 22 20 69 6e 74 6f 20 |&&"to Va|x" into |
|00002390| 6d 73 67 0d 73 65 6e 64 | 4c 69 6e 65 20 22 53 65 |msg.send|Line "Se|
|000023a0| 74 20 74 65 72 6d 2f 4e | 6f 45 63 68 6f 2f 48 6f |t term/N|oEcho/Ho|
|000023b0| 73 74 53 79 6e 63 22 0d | 73 65 6e 64 4c 69 6e 65 |stSync".|sendLine|
|000023c0| 20 22 43 72 65 61 74 65 | 20 22 20 26 20 66 69 6c | "Create| " & fil|
|000023d0| 65 6e 61 6d 65 0d 70 75 | 74 20 6e 75 6d 62 65 72 |ename.pu|t number|
|000023e0| 20 6f 66 20 6c 69 6e 65 | 73 20 69 6e 20 61 74 65 | of line|s in ate|
|000023f0| 78 74 20 69 6e 74 6f 20 | 6e 0d 72 65 70 65 61 74 |xt into |n.repeat|
|00002400| 20 77 69 74 68 20 69 20 | 3d 20 31 20 74 6f 20 6e | with i |= 1 to n|
|00002410| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 62 |.set cur|sor to b|
|00002420| 75 73 79 0d 70 75 74 20 | 6c 69 6e 65 20 69 20 6f |usy.put |line i o|
|00002430| 66 20 61 74 65 78 74 20 | 69 6e 74 6f 20 74 6c 69 |f atext |into tli|
|00002440| 6e 65 0d 69 66 20 6c 65 | 6e 67 74 68 28 74 6c 69 |ne.if le|ngth(tli|
|00002450| 6e 65 29 20 3e 20 31 32 | 30 20 74 68 65 6e 0d 2d |ne) > 12|0 then.-|
|00002460| 2d 20 66 69 78 20 6c 6f | 6e 67 20 6c 69 6e 65 73 |- fix lo|ng lines|
|00002470| 20 21 3f 0d 65 6e 64 20 | 69 66 0d 73 65 6e 64 4c | !?.end |if.sendL|
|00002480| 69 6e 65 20 74 6c 69 6e | 65 0d 65 6e 64 20 72 65 |ine tlin|e.end re|
|00002490| 70 65 61 74 0d 73 65 6e | 64 41 63 63 65 70 74 20 |peat.sen|dAccept |
|000024a0| 20 2d 2d 20 63 6f 6e 74 | 72 6f 6c 2d 5a 20 63 6c | -- cont|rol-Z cl|
|000024b0| 6f 73 65 73 20 24 63 72 | 65 61 74 65 0d 73 65 6e |oses $cr|eate.sen|
|000024c0| 64 4c 69 6e 65 20 22 53 | 65 74 20 74 65 72 6d 2f |dLine "S|et term/|
|000024d0| 45 63 68 6f 22 0d 67 65 | 74 20 72 65 63 76 54 6f |Echo".ge|t recvTo|
|000024e0| 28 65 6d 70 74 79 2c 36 | 30 2c 65 6d 70 74 79 29 |(empty,6|0,empty)|
|000024f0| 20 20 2d 2d 20 73 74 69 | 6c 6c 20 6e 65 65 64 20 | -- sti|ll need |
|00002500| 74 6f 20 65 61 74 20 61 | 20 66 65 77 20 65 63 68 |to eat a| few ech|
|00002510| 6f 65 64 20 6c 69 6e 65 | 73 0d 70 75 74 20 74 72 |oed line|s.put tr|
|00002520| 75 65 20 69 6e 74 6f 20 | 6e 65 65 64 56 61 78 44 |ue into |needVaxD|
|00002530| 69 72 20 20 20 2d 2d 20 | 6e 65 65 64 20 74 6f 20 |ir -- |need to |
|00002540| 75 70 64 61 74 65 20 66 | 69 6c 65 20 6c 69 73 74 |update f|ile list|
|00002550| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 68 |.set cur|sor to h|
|00002560| 61 6e 64 0d 68 69 64 65 | 20 6d 65 73 73 61 67 65 |and.hide| message|
|00002570| 20 62 6f 78 0d 65 6e 64 | 20 74 65 78 74 54 6f 56 | box.end| textToV|
|00002580| 61 78 0d 0d 2d 2d 0d 2d | 2d 20 67 65 6e 65 72 61 |ax..--.-|- genera|
|00002590| 6c 20 75 74 69 6c 69 74 | 69 65 73 0d 2d 2d 0d 66 |l utilit|ies.--.f|
|000025a0| 75 6e 63 74 69 6f 6e 20 | 6c 69 6e 65 43 6c 69 63 |unction |lineClic|
|000025b0| 6b 65 64 20 2d 2d 20 72 | 65 74 75 72 6e 73 20 74 |ked -- r|eturns t|
|000025c0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |he numbe|r of the|
|000025d0| 20 6c 61 73 74 20 6c 69 | 6e 65 20 63 6c 69 63 6b | last li|ne click|
|000025e0| 65 64 0d 70 75 74 20 28 | 28 28 69 74 65 6d 20 32 |ed.put (|((item 2|
|000025f0| 20 6f 66 20 74 68 65 20 | 63 6c 69 63 6b 6c 6f 63 | of the |clickloc|
|00002600| 20 2d 20 69 74 65 6d 20 | 32 20 6f 66 20 74 68 65 | - item |2 of the|
|00002610| 20 72 65 63 74 20 6f 66 | 20 74 68 65 20 74 61 72 | rect of| the tar|
|00002620| 67 65 74 29 c2 0d 64 69 | 76 20 74 68 65 20 74 65 |get)..di|v the te|
|00002630| 78 74 68 65 69 67 68 74 | 20 6f 66 20 74 68 65 20 |xtheight| of the |
|00002640| 74 61 72 67 65 74 29 20 | 2b 20 31 29 20 69 6e 74 |target) |+ 1) int|
|00002650| 6f 20 6c 6e 75 6d 0d 69 | 66 20 74 68 65 20 73 74 |o lnum.i|f the st|
|00002660| 79 6c 65 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 |yle of t|he targe|
|00002670| 74 20 69 73 20 22 73 63 | 72 6f 6c 6c 69 6e 67 22 |t is "sc|rolling"|
|00002680| 20 74 68 65 6e 0d 70 75 | 74 20 74 72 75 6e 63 28 | then.pu|t trunc(|
|00002690| 73 63 72 6f 6c 6c 20 6f | 66 20 74 68 65 20 74 61 |scroll o|f the ta|
|000026a0| 72 67 65 74 20 2f 20 74 | 65 78 74 68 65 69 67 68 |rget / t|extheigh|
|000026b0| 74 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 29 |t of the| target)|
|000026c0| 20 69 6e 74 6f 20 73 6e | 75 6d 0d 72 65 74 75 72 | into sn|um.retur|
|000026d0| 6e 20 6c 6e 75 6d 20 2b | 20 73 6e 75 6d 0d 65 6c |n lnum +| snum.el|
|000026e0| 73 65 0d 72 65 74 75 72 | 6e 20 6c 6e 75 6d 0d 65 |se.retur|n lnum.e|
|000026f0| 6e 64 20 69 66 0d 65 6e | 64 20 6c 69 6e 65 43 6c |nd if.en|d lineCl|
|00002700| 69 63 6b 65 64 0d 0d 6f | 6e 20 75 70 64 61 74 65 |icked..o|n update|
|00002710| 0d 70 75 74 20 74 68 65 | 20 61 62 62 72 65 76 20 |.put the| abbrev |
|00002720| 64 61 74 65 20 69 6e 74 | 6f 20 66 6c 64 20 22 64 |date int|o fld "d|
|00002730| 61 74 65 22 0d 70 75 74 | 20 74 68 65 20 74 69 6d |ate".put| the tim|
|00002740| 65 20 69 6e 74 6f 20 66 | 6c 64 20 22 74 69 6d 65 |e into f|ld "time|
|00002750| 22 0d 65 6e 64 20 75 70 | 64 61 74 65 0d 0d 66 75 |".end up|date..fu|
|00002760| 6e 63 74 69 6f 6e 20 62 | 75 74 6e 61 6d 65 20 6e |nction b|utname n|
|00002770| 61 6d 65 0d 2d 2d 20 72 | 65 74 75 72 6e 20 6e 61 |ame.-- r|eturn na|
|00002780| 6d 65 20 6f 6e 6c 79 20 | 66 72 6f 6d 20 27 63 61 |me only |from 'ca|
|00002790| 72 64 20 62 75 74 74 6f | 6e 20 22 6e 61 6d 65 22 |rd butto|n "name"|
|000027a0| 27 0d 70 75 74 20 77 6f | 72 64 20 33 20 6f 66 20 |'.put wo|rd 3 of |
|000027b0| 6e 61 6d 65 20 69 6e 74 | 6f 20 6e 61 6d 65 0d 64 |name int|o name.d|
|000027c0| 65 6c 65 74 65 20 63 68 | 61 72 20 31 20 6f 66 20 |elete ch|ar 1 of |
|000027d0| 6e 61 6d 65 0d 64 65 6c | 65 74 65 20 6c 61 73 74 |name.del|ete last|
|000027e0| 20 63 68 61 72 20 6f 66 | 20 6e 61 6d 65 0d 72 65 | char of| name.re|
|000027f0| 74 75 72 6e 20 6e 61 6d | 65 0d 65 6e 64 20 62 75 |turn nam|e.end bu|
|00002800| 74 6e 61 6d 65 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |tname..f|unction |
|00002810| 66 69 78 6d 61 69 6c 61 | 64 64 72 20 61 64 64 72 |fixmaila|ddr addr|
|00002820| 0d 2d 2d 20 61 64 64 20 | 71 75 6f 74 65 73 20 66 |.-- add |quotes f|
|00002830| 6f 72 20 6d 61 69 6c 65 | 72 0d 70 75 74 20 71 75 |or maile|r.put qu|
|00002840| 6f 74 65 20 69 6e 74 6f | 20 61 64 0d 72 65 70 65 |ote into| ad.repe|
|00002850| 61 74 20 77 69 74 68 20 | 69 20 3d 20 31 20 74 6f |at with |i = 1 to|
|00002860| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 73 | number |of chars|
|00002870| 20 69 6e 20 61 64 64 72 | 0d 67 65 74 20 63 68 61 | in addr|.get cha|
|00002880| 72 20 69 20 6f 66 20 61 | 64 64 72 0d 70 75 74 20 |r i of a|ddr.put |
|00002890| 69 74 20 61 66 74 65 72 | 20 61 64 0d 69 66 20 69 |it after| ad.if i|
|000028a0| 74 20 3d 20 71 75 6f 74 | 65 20 74 68 65 6e 20 70 |t = quot|e then p|
|000028b0| 75 74 20 69 74 20 61 66 | 74 65 72 20 61 64 0d 65 |ut it af|ter ad.e|
|000028c0| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 71 75 |nd repea|t.put qu|
|000028d0| 6f 74 65 20 61 66 74 65 | 72 20 61 64 0d 72 65 74 |ote afte|r ad.ret|
|000028e0| 75 72 6e 20 61 64 0d 65 | 6e 64 20 66 69 78 6d 61 |urn ad.e|nd fixma|
|000028f0| 69 6c 61 64 64 72 0d 0d | 6f 6e 20 70 75 74 6c 6e |iladdr..|on putln|
|00002900| 20 73 74 72 0d 67 6c 6f | 62 61 6c 20 74 68 65 43 | str.glo|bal theC|
|00002910| 6d 64 0d 70 75 74 20 73 | 74 72 20 26 20 72 65 74 |md.put s|tr & ret|
|00002920| 75 72 6e 20 61 66 74 65 | 72 20 74 68 65 43 6d 64 |urn afte|r theCmd|
|00002930| 0d 65 6e 64 20 70 75 74 | 6c 6e 0d 0d 0d 2d 2d 20 |.end put|ln...-- |
|00002940| 65 6e 64 20 73 74 61 63 | 6b 0d 00 00 00 00 00 00 |end stac|k.......|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a80| 00 00 02 00 4d 41 53 54 | ff ff ff ff 00 00 00 00 |....MAST|........|
|00002a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002aa0| 00 02 3f cd 00 05 d5 e2 | 00 01 a4 f2 00 06 eb e4 |..?.....|........|
|00002ab0| 00 02 10 07 00 07 e7 dc | 00 06 ee c3 00 07 2a f3 |........|......*.|
|00002ac0| 00 07 2c 3e 00 07 8f e2 | 00 07 91 1b 00 00 00 00 |..,>....|........|
|00002ad0| 00 00 00 00 00 02 54 ae | 00 02 87 00 00 03 eb d1 |......T.|........|
|00002ae0| 00 02 57 16 00 02 5c 7f | 00 02 59 78 00 06 9f 6f |..W...\.|..Yx...o|
|00002af0| 00 01 60 60 00 01 64 92 | 00 00 00 00 00 00 00 00 |..``..d.|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c80| 00 00 00 80 4c 49 53 54 | 00 00 1c 60 00 00 00 01 |....LIST|...`....|
|00002c90| 00 00 08 00 00 00 00 08 | 00 18 00 02 00 05 00 03 |........|........|
|00002ca0| 40 00 03 ba 00 00 00 08 | 00 00 00 00 00 00 00 00 |@.......|........|
|00002cb0| 00 00 1d 92 00 08 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 08 00 50 41 47 45 | 00 00 1d 92 00 00 1c 60 |....PAGE|.......`|
|00002d10| cf 71 c1 83 00 00 00 00 | 00 00 19 7f e0 7f ff ff |.q......|........|
|00002d20| ff ef ff ff df ff d7 7b | ff ef 7f ff ff ff ff ef |.......{|........|
|00002d30| 00 00 16 00 e0 7f ff ff | ff ff ff ff ff ff ff ff |........|........|
|00002d40| ff ff ff ff ff ff ff ff | 00 00 17 d1 a0 7f ff ff |........|........|
|00002d50| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00002d60| 00 00 09 e2 20 7f ff ff | ff ff ff ff ff ff ff ff |.... ...|........|
|00002d70| ff ff ff ff ff ff ff ff | 00 00 1b 6f 20 7f ff ff |........|...o ...|
|00002d80| ff ff ff ff ff ff ff 7f | ff ff ff ff ff ff ff ff |........|........|
|00002d90| 00 00 0b e4 e0 00 01 00 | 00 20 01 02 02 00 40 00 |........|. ....@.|
|00002da0| 90 00 10 00 40 00 08 00 | 00 00 0f f3 20 00 00 00 |....@...|.... ...|
|00002db0| 00 20 01 00 00 00 00 00 | 80 00 00 00 40 00 00 00 |. ......|....@...|
|00002dc0| 00 00 11 e2 20 00 00 00 | 00 00 00 04 00 00 40 00 |.... ...|......@.|
|00002dd0| 01 08 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 0d 80 42 4b 47 44 | 00 00 0a f2 00 00 0c 07 |....BKGD|........|
|00003510| 40 00 00 00 00 00 00 03 | 00 00 08 cd 00 00 18 16 |@.......|........|
|00003520| 00 0a 00 14 00 00 02 f6 | 00 00 00 00 00 00 00 66 |........|.......f|
|00003530| 00 01 01 00 00 15 01 c3 | 00 29 01 d7 20 00 00 00 |........|.).. ...|
|00003540| 03 f5 00 01 00 00 00 0c | 00 00 00 10 4e 65 78 74 |........|....Next|
|00003550| 00 00 6f 6e 20 6d 6f 75 | 73 65 55 70 0d 76 69 73 |..on mou|seUp.vis|
|00003560| 75 61 6c 20 65 66 66 65 | 63 74 20 77 69 70 65 20 |ual effe|ct wipe |
|00003570| 6c 65 66 74 0d 67 6f 20 | 74 6f 20 6e 65 78 74 20 |left.go |to next |
|00003580| 63 61 72 64 0d 65 6e 64 | 20 6d 6f 75 73 65 55 70 |card.end| mouseUp|
|00003590| 0d 0d 00 00 00 6a 00 02 | 01 00 00 04 01 c1 00 17 |.....j..|........|
|000035a0| 01 d6 20 00 00 00 03 f6 | 00 01 00 00 00 0c 00 00 |.. .....|........|
|000035b0| 00 10 50 72 65 76 00 00 | 6f 6e 20 6d 6f 75 73 65 |..Prev..|on mouse|
|000035c0| 55 70 0d 76 69 73 75 61 | 6c 20 65 66 66 65 63 74 |Up.visua|l effect|
|000035d0| 20 77 69 70 65 20 72 69 | 67 68 74 0d 67 6f 20 74 | wipe ri|ght.go t|
|000035e0| 6f 20 70 72 65 76 69 6f | 75 73 20 63 61 72 64 0d |o previo|us card.|
|000035f0| 65 6e 64 20 6d 6f 75 73 | 65 55 70 0d 0d 00 00 46 |end mous|eUp....F|
|00003600| 00 03 01 80 00 ab 01 cd | 00 d9 01 f8 a0 04 00 00 |........|........|
|00003610| 13 c3 00 01 00 00 00 0c | 00 00 00 10 46 69 6c 65 |........|....File|
|00003620| 00 00 6f 6e 20 6d 6f 75 | 73 65 55 70 0d 66 69 6c |..on mou|seUp.fil|
|00003630| 65 50 6c 6f 74 0d 65 6e | 64 20 6d 6f 75 73 65 55 |ePlot.en|d mouseU|
|00003640| 70 0d 00 00 00 4a 00 11 | 01 00 00 37 01 bd 00 4f |p....J..|...7...O|
|00003650| 01 fe a0 04 00 00 00 00 | 00 01 00 00 00 0c 00 00 |........|........|
|00003660| 00 10 50 6c 6f 74 20 66 | 69 6c 65 00 00 6f 6e 20 |..Plot f|ile..on |
|00003670| 6d 6f 75 73 65 55 70 0d | 64 6f 48 50 66 69 6c 65 |mouseUp.|doHPfile|
|00003680| 0d 65 6e 64 20 6d 6f 75 | 73 65 55 70 0d 00 00 48 |.end mou|seUp...H|
|00003690| 00 04 01 80 00 75 01 cc | 00 a3 01 f7 a0 04 00 00 |.....u..|........|
|000036a0| 03 ef 00 01 00 00 00 0c | 00 00 00 10 50 72 69 6e |........|....Prin|
|000036b0| 74 00 00 6f 6e 20 6d 6f | 75 73 65 55 70 0d 70 72 |t..on mo|useUp.pr|
|000036c0| 69 6e 74 50 6c 6f 74 0d | 65 6e 64 20 6d 6f 75 73 |intPlot.|end mous|
|000036d0| 65 55 70 0d 00 00 00 26 | 00 06 02 00 00 0a 00 95 |eUp....&|........|
|000036e0| 00 23 01 a0 00 00 00 00 | 00 00 00 00 00 03 00 0e |.#......|........|
|000036f0| 00 00 00 12 74 69 74 6c | 65 00 00 00 00 4c 00 09 |....titl|e....L..|
|00003700| 01 80 00 37 01 b9 00 51 | 02 00 a0 04 00 00 00 00 |...7...Q|........|
|00003710| 00 01 00 00 00 0c 00 00 | 00 10 43 6c 6f 73 65 20 |........|..Close |
|00003720| 50 6c 6f 74 00 00 6f 6e | 20 6d 6f 75 73 65 55 70 |Plot..on| mouseUp|
|00003730| 0d 63 6c 6f 73 65 70 6c | 6f 74 0d 65 6e 64 20 6d |.closepl|ot.end m|
|00003740| 6f 75 73 65 55 70 0d 00 | 00 4a 00 0b 01 80 00 56 |ouseUp..|.J.....V|
|00003750| 01 c1 00 6d 01 fe a0 04 | 00 00 00 00 00 01 00 00 |...m....|........|
|00003760| 00 0c 00 00 00 10 43 6c | 69 70 20 50 6c 6f 74 00 |......Cl|ip Plot.|
|00003770| 00 6f 6e 20 6d 6f 75 73 | 65 55 70 0d 63 6c 69 70 |.on mous|eUp.clip|
|00003780| 50 6c 6f 74 0d 65 6e 64 | 20 6d 6f 75 73 65 55 70 |Plot.end| mouseUp|
|00003790| 0d 00 00 68 00 12 01 00 | 00 04 01 d9 00 16 01 ee |...h....|........|
|000037a0| 20 00 00 00 71 5b 00 01 | 00 00 00 0c 00 00 00 10 | ...q[..|........|
|000037b0| 74 6f 20 54 4f 43 00 00 | 6f 6e 20 6d 6f 75 73 65 |to TOC..|on mouse|
|000037c0| 55 70 0d 76 69 73 75 61 | 6c 20 65 66 66 65 63 74 |Up.visua|l effect|
|000037d0| 20 77 69 70 65 20 64 6f | 77 6e 0d 67 6f 20 74 6f | wipe do|wn.go to|
|000037e0| 20 63 61 72 64 20 22 54 | 4f 43 22 0d 65 6e 64 20 | card "T|OC".end |
|000037f0| 6d 6f 75 73 65 55 70 0d | 00 00 00 2a 00 14 01 00 |mouseUp.|...*....|
|00003800| 00 30 00 00 01 56 01 b5 | 00 00 00 00 00 00 00 01 |.0...V..|........|
|00003810| 00 00 00 0c 00 00 00 10 | 70 6c 6f 74 73 69 7a 65 |........|plotsize|
|00003820| 00 00 00 00 50 6c 6f 74 | 2e 62 61 63 6b 00 2d 2d |....Plot|.back.--|
|00003830| 0d 2d 2d 20 20 20 20 20 | 68 70 32 70 69 63 74 20 |.-- |hp2pict |
|00003840| 58 43 4d 44 20 63 61 6c | 6c 73 0d 2d 2d 20 68 70 |XCMD cal|ls.-- hp|
|00003850| 32 70 69 63 74 20 22 6f | 70 65 6e 22 2c 6e 61 6d |2pict "o|pen",nam|
|00003860| 65 20 3b 20 20 72 65 74 | 75 72 6e 73 20 77 69 6e |e ; ret|urns win|
|00003870| 64 6f 77 20 70 6f 69 6e | 74 65 72 0d 2d 2d 20 20 |dow poin|ter.-- |
|00003880| 20 20 6f 70 65 6e 20 62 | 6c 61 6e 6b 20 77 69 6e | open b|lank win|
|00003890| 64 6f 77 09 09 09 09 09 | 09 0d 2d 2d 20 68 70 32 |dow.....|..-- hp2|
|000038a0| 70 69 63 74 20 22 64 72 | 61 77 66 22 2c 77 69 6e |pict "dr|awf",win|
|000038b0| 64 6f 77 20 70 6f 69 6e | 74 65 72 2c 20 66 69 6c |dow poin|ter, fil|
|000038c0| 65 6e 61 6d 65 20 77 2f | 20 48 50 47 4c 0d 2d 2d |ename w/| HPGL.--|
|000038d0| 20 20 20 20 64 72 61 77 | 20 68 70 20 66 69 6c 65 | draw| hp file|
|000038e0| 20 63 6f 6e 74 65 6e 74 | 73 20 74 6f 20 77 69 6e | content|s to win|
|000038f0| 64 6f 77 09 09 09 09 09 | 09 0d 2d 2d 20 68 70 32 |dow.....|..-- hp2|
|00003900| 70 69 63 74 20 22 64 72 | 61 77 63 22 2c 77 69 6e |pict "dr|awc",win|
|00003910| 64 6f 77 20 70 6f 69 6e | 74 65 72 2c 20 43 4f 4e |dow poin|ter, CON|
|00003920| 54 41 49 4e 54 45 52 20 | 77 2f 20 48 50 47 4c 0d |TAINTER |w/ HPGL.|
|00003930| 2d 2d 20 20 20 20 64 72 | 61 77 20 68 70 20 63 6f |-- dr|aw hp co|
|00003940| 6e 74 61 69 6e 65 72 20 | 63 6f 6e 74 65 6e 74 73 |ntainer |contents|
|00003950| 20 74 6f 20 77 69 6e 64 | 6f 77 09 09 09 09 09 09 | to wind|ow......|
|00003960| 0d 2d 2d 20 68 70 32 70 | 69 63 74 20 22 66 65 74 |.-- hp2p|ict "fet|
|00003970| 63 68 22 2c 77 69 6e 64 | 6f 77 20 70 6f 69 6e 74 |ch",wind|ow point|
|00003980| 65 72 2c 20 43 4f 4e 54 | 41 49 4e 54 45 52 20 77 |er, CONT|AINTER w|
|00003990| 2f 20 48 50 47 4c 0d 2d | 2d 20 20 20 20 64 72 61 |/ HPGL.-|- dra|
|000039a0| 77 20 68 70 20 77 68 69 | 6c 65 20 66 65 74 63 68 |w hp whi|le fetch|
|000039b0| 69 6e 67 20 66 72 6f 6d | 20 63 6f 6d 6d 20 6c 69 |ing from| comm li|
|000039c0| 6e 6b 20 77 2f 20 22 72 | 65 63 76 54 6f 28 2e 2e |nk w/ "r|ecvTo(..|
|000039d0| 2e 29 22 20 6d 73 67 09 | 09 0d 2d 2d 20 68 70 32 |.)" msg.|..-- hp2|
|000039e0| 70 69 63 74 20 22 66 69 | 6c 65 22 2c 77 69 6e 64 |pict "fi|le",wind|
|000039f0| 6f 77 20 70 6f 69 6e 74 | 65 72 2c 66 69 6c 65 6e |ow point|er,filen|
|00003a00| 61 6d 65 20 66 6f 72 20 | 50 49 43 54 0d 2d 2d 20 |ame for |PICT.-- |
|00003a10| 20 20 20 73 61 76 65 20 | 77 69 6e 64 6f 77 20 70 | save |window p|
|00003a20| 69 63 74 20 61 73 20 66 | 69 6c 65 09 09 09 09 09 |ict as f|ile.....|
|00003a30| 09 0d 2d 2d 20 68 70 32 | 70 69 63 74 20 22 63 6c |..-- hp2|pict "cl|
|00003a40| 69 70 22 2c 77 69 6e 64 | 6f 77 20 70 6f 69 6e 74 |ip",wind|ow point|
|00003a50| 65 72 0d 2d 2d 20 20 20 | 20 70 75 74 20 77 69 6e |er.-- | put win|
|00003a60| 64 6f 77 20 70 69 63 74 | 20 69 6e 74 6f 20 63 6c |dow pict| into cl|
|00003a70| 69 70 62 64 0d 2d 2d 20 | 68 70 32 70 69 63 74 20 |ipbd.-- |hp2pict |
|00003a80| 22 70 72 69 6e 74 22 2c | 77 69 6e 64 6f 77 20 70 |"print",|window p|
|00003a90| 6f 69 6e 74 65 72 0d 2d | 2d 20 20 20 20 70 72 69 |ointer.-|- pri|
|00003aa0| 6e 74 20 77 69 6e 64 6f | 77 20 70 69 63 74 09 09 |nt windo|w pict..|
|00003ab0| 09 09 09 09 0d 2d 2d 20 | 68 70 32 70 69 63 74 20 |.....-- |hp2pict |
|00003ac0| 22 63 6c 6f 73 65 22 2c | 77 69 6e 64 6f 77 20 70 |"close",|window p|
|00003ad0| 6f 69 6e 74 65 72 0d 0d | 0d 6f 6e 20 63 6c 6f 73 |ointer..|.on clos|
|00003ae0| 65 42 61 63 6b 67 72 6f | 75 6e 64 0d 63 6c 6f 73 |eBackgro|und.clos|
|00003af0| 65 70 6c 6f 74 0d 65 6e | 64 20 63 6c 6f 73 65 42 |eplot.en|d closeB|
|00003b00| 61 63 6b 67 72 6f 75 6e | 64 0d 0d 6f 6e 20 6e 65 |ackgroun|d..on ne|
|00003b10| 77 50 6c 6f 74 0d 67 6c | 6f 62 61 6c 20 70 6c 6f |wPlot.gl|obal plo|
|00003b20| 74 57 69 6e 64 6f 77 2c | 20 70 6c 6f 74 4e 61 6d |tWindow,| plotNam|
|00003b30| 65 0d 73 65 74 20 63 75 | 72 73 6f 72 20 74 6f 20 |e.set cu|rsor to |
|00003b40| 77 61 74 63 68 0d 70 75 | 74 20 74 68 65 20 72 65 |watch.pu|t the re|
|00003b50| 63 74 20 6f 66 20 62 67 | 20 62 75 74 74 6f 6e 20 |ct of bg| button |
|00003b60| 22 70 6c 6f 74 73 69 7a | 65 22 20 69 6e 74 6f 20 |"plotsiz|e" into |
|00003b70| 70 6c 6f 74 73 69 7a 65 | 0d 68 70 32 70 69 63 74 |plotsize|.hp2pict|
|00003b80| 20 22 6f 70 65 6e 22 2c | 20 70 6c 6f 74 4e 61 6d | "open",| plotNam|
|00003b90| 65 2c 20 70 6c 6f 74 73 | 69 7a 65 0d 70 75 74 20 |e, plots|ize.put |
|00003ba0| 74 68 65 20 72 65 73 75 | 6c 74 20 69 6e 74 6f 20 |the resu|lt into |
|00003bb0| 70 6c 6f 74 57 69 6e 64 | 6f 77 0d 73 68 6f 77 20 |plotWind|ow.show |
|00003bc0| 62 6b 67 6e 64 20 62 75 | 74 74 6f 6e 20 22 43 6c |bkgnd bu|tton "Cl|
|00003bd0| 6f 73 65 20 70 6c 6f 74 | 22 0d 73 68 6f 77 20 62 |ose plot|".show b|
|00003be0| 6b 67 6e 64 20 62 75 74 | 74 6f 6e 20 22 43 6c 69 |kgnd but|ton "Cli|
|00003bf0| 70 20 70 6c 6f 74 22 0d | 73 68 6f 77 20 62 6b 67 |p plot".|show bkg|
|00003c00| 6e 64 20 62 75 74 74 6f | 6e 20 22 46 69 6c 65 22 |nd butto|n "File"|
|00003c10| 0d 73 68 6f 77 20 62 6b | 67 6e 64 20 62 75 74 74 |.show bk|gnd butt|
|00003c20| 6f 6e 20 22 50 72 69 6e | 74 22 0d 2d 2d 75 70 64 |on "Prin|t".--upd|
|00003c30| 61 74 65 0d 65 6e 64 20 | 6e 65 77 50 6c 6f 74 0d |ate.end |newPlot.|
|00003c40| 0d 6f 6e 20 63 6c 6f 73 | 65 70 6c 6f 74 0d 67 6c |.on clos|eplot.gl|
|00003c50| 6f 62 61 6c 20 70 6c 6f | 74 57 69 6e 64 6f 77 0d |obal plo|tWindow.|
|00003c60| 69 66 20 28 70 6c 6f 74 | 57 69 6e 64 6f 77 20 69 |if (plot|Window i|
|00003c70| 73 20 6e 6f 74 20 65 6d | 70 74 79 29 20 61 6e 64 |s not em|pty) and|
|00003c80| 20 28 70 6c 6f 74 57 69 | 6e 64 6f 77 20 69 73 20 | (plotWi|ndow is |
|00003c90| 6e 6f 74 20 30 29 20 74 | 68 65 6e 0d 68 70 32 70 |not 0) t|hen.hp2p|
|00003ca0| 69 63 74 20 22 63 6c 6f | 73 65 22 2c 70 6c 6f 74 |ict "clo|se",plot|
|00003cb0| 57 69 6e 64 6f 77 0d 70 | 75 74 20 65 6d 70 74 79 |Window.p|ut empty|
|00003cc0| 20 69 6e 74 6f 20 70 6c | 6f 74 57 69 6e 64 6f 77 | into pl|otWindow|
|00003cd0| 0d 65 6e 64 20 69 66 0d | 68 69 64 65 20 62 6b 67 |.end if.|hide bkg|
|00003ce0| 6e 64 20 62 75 74 74 6f | 6e 20 22 43 6c 6f 73 65 |nd butto|n "Close|
|00003cf0| 20 70 6c 6f 74 22 0d 68 | 69 64 65 20 62 6b 67 6e | plot".h|ide bkgn|
|00003d00| 64 20 62 75 74 74 6f 6e | 20 22 43 6c 69 70 20 70 |d button| "Clip p|
|00003d10| 6c 6f 74 22 0d 68 69 64 | 65 20 62 6b 67 6e 64 20 |lot".hid|e bkgnd |
|00003d20| 62 75 74 74 6f 6e 20 22 | 46 69 6c 65 22 0d 68 69 |button "|File".hi|
|00003d30| 64 65 20 62 6b 67 6e 64 | 20 62 75 74 74 6f 6e 20 |de bkgnd| button |
|00003d40| 22 50 72 69 6e 74 22 0d | 65 6e 64 20 63 6c 6f 73 |"Print".|end clos|
|00003d50| 65 70 6c 6f 74 0d 0d 0d | 0d 6f 6e 20 63 6c 69 70 |eplot...|.on clip|
|00003d60| 50 6c 6f 74 0d 67 6c 6f | 62 61 6c 20 70 6c 6f 74 |Plot.glo|bal plot|
|00003d70| 57 69 6e 64 6f 77 2c 20 | 70 6c 6f 74 4e 61 6d 65 |Window, |plotName|
|00003d80| 0d 68 70 32 70 69 63 74 | 20 22 63 6c 69 70 22 2c |.hp2pict| "clip",|
|00003d90| 70 6c 6f 74 57 69 6e 64 | 6f 77 0d 70 75 74 20 72 |plotWind|ow.put r|
|00003da0| 65 63 74 20 6f 66 20 62 | 67 20 62 75 74 74 6f 6e |ect of b|g button|
|00003db0| 20 22 70 6c 6f 74 73 69 | 7a 65 22 20 69 6e 74 6f | "plotsi|ze" into|
|00003dc0| 20 70 6c 6f 74 73 69 7a | 65 0d 44 6f 4d 65 6e 75 | plotsiz|e.DoMenu|
|00003dd0| 20 22 50 61 73 74 65 20 | 50 69 63 74 75 72 65 22 | "Paste |Picture"|
|00003de0| 0d 2d 2d 20 61 75 74 6f | 20 73 65 6c 65 63 74 73 |.-- auto| selects|
|00003df0| 20 70 61 69 6e 74 20 74 | 6f 6f 6c 0d 70 75 74 20 | paint t|ool.put |
|00003e00| 69 74 65 6d 20 31 20 74 | 6f 20 32 20 6f 66 20 70 |item 1 t|o 2 of p|
|00003e10| 6c 6f 74 73 69 7a 65 20 | 69 6e 74 6f 20 70 74 0d |lotsize |into pt.|
|00003e20| 64 72 61 67 20 66 72 6f | 6d 20 30 2c 30 20 74 6f |drag fro|m 0,0 to|
|00003e30| 20 70 74 0d 63 68 6f 6f | 73 65 20 62 72 6f 77 73 | pt.choo|se brows|
|00003e40| 65 20 74 6f 6f 6c 0d 70 | 75 74 20 70 6c 6f 74 4e |e tool.p|ut plotN|
|00003e50| 61 6d 65 20 69 6e 74 6f | 20 66 69 65 6c 64 20 22 |ame into| field "|
|00003e60| 74 69 74 6c 65 22 0d 65 | 6e 64 20 63 6c 69 70 50 |title".e|nd clipP|
|00003e70| 6c 6f 74 0d 0d 6f 6e 20 | 70 72 69 6e 74 50 6c 6f |lot..on |printPlo|
|00003e80| 74 0d 67 6c 6f 62 61 6c | 20 70 6c 6f 74 57 69 6e |t.global| plotWin|
|00003e90| 64 6f 77 0d 68 70 32 70 | 69 63 74 20 22 70 72 69 |dow.hp2p|ict "pri|
|00003ea0| 6e 74 22 2c 20 70 6c 6f | 74 57 69 6e 64 6f 77 0d |nt", plo|tWindow.|
|00003eb0| 65 6e 64 20 70 72 69 6e | 74 50 6c 6f 74 0d 0d 6f |end prin|tPlot..o|
|00003ec0| 6e 20 66 69 6c 65 50 6c | 6f 74 0d 67 6c 6f 62 61 |n filePl|ot.globa|
|00003ed0| 6c 20 70 6c 6f 74 57 69 | 6e 64 6f 77 2c 20 70 6c |l plotWi|ndow, pl|
|00003ee0| 6f 74 4e 61 6d 65 2c 20 | 70 6c 6f 74 50 61 74 68 |otName, |plotPath|
|00003ef0| 0d 2d 2d 70 75 74 20 70 | 6c 6f 74 4e 61 6d 65 20 |.--put p|lotName |
|00003f00| 69 6e 74 6f 20 66 69 6c | 65 6e 61 6d 65 0d 70 75 |into fil|ename.pu|
|00003f10| 74 20 66 6c 64 20 22 74 | 69 74 6c 65 22 20 69 6e |t fld "t|itle" in|
|00003f20| 74 6f 20 66 69 6c 65 6e | 61 6d 65 0d 67 65 74 20 |to filen|ame.get |
|00003f30| 6f 66 66 73 65 74 28 22 | 2e 22 2c 66 69 6c 65 6e |offset("|.",filen|
|00003f40| 61 6d 65 29 0d 69 66 20 | 69 74 20 3e 20 30 20 74 |ame).if |it > 0 t|
|00003f50| 68 65 6e 20 70 75 74 20 | 63 68 61 72 20 31 20 74 |hen put |char 1 t|
|00003f60| 6f 20 69 74 2d 31 20 6f | 66 20 66 69 6c 65 6e 61 |o it-1 o|f filena|
|00003f70| 6d 65 20 69 6e 74 6f 20 | 66 69 6c 65 6e 61 6d 65 |me into |filename|
|00003f80| 0d 70 75 74 20 66 69 6c | 65 6e 61 6d 65 20 26 20 |.put fil|ename & |
|00003f90| 22 2e 50 69 63 74 22 20 | 69 6e 74 6f 20 66 69 6c |".Pict" |into fil|
|00003fa0| 65 6e 61 6d 65 0d 70 75 | 74 20 67 65 74 50 75 74 |ename.pu|t getPut|
|00003fb0| 46 69 6c 65 6e 61 6d 65 | 28 22 50 75 74 22 2c 22 |Filename|("Put","|
|00003fc0| 53 61 76 65 20 50 6c 6f | 74 20 61 73 3a 22 2c 66 |Save Plo|t as:",f|
|00003fd0| 69 6c 65 6e 61 6d 65 29 | 20 69 6e 74 6f 20 66 69 |ilename)| into fi|
|00003fe0| 6c 65 6e 61 6d 65 0d 68 | 70 32 70 69 63 74 20 22 |lename.h|p2pict "|
|00003ff0| 66 69 6c 65 22 2c 20 70 | 6c 6f 74 57 69 6e 64 6f |file", p|lotWindo|
|00004000| 77 2c 20 66 69 6c 65 6e | 61 6d 65 0d 65 6e 64 20 |w, filen|ame.end |
|00004010| 66 69 6c 65 50 6c 6f 74 | 0d 0d 6f 6e 20 64 6f 48 |filePlot|..on doH|
|00004020| 50 66 69 6c 65 0d 67 6c | 6f 62 61 6c 20 70 6c 6f |Pfile.gl|obal plo|
|00004030| 74 57 69 6e 64 6f 77 2c | 20 70 6c 6f 74 4e 61 6d |tWindow,| plotNam|
|00004040| 65 2c 20 70 6c 6f 74 50 | 61 74 68 0d 63 6c 6f 73 |e, plotP|ath.clos|
|00004050| 65 50 6c 6f 74 0d 70 75 | 74 20 67 65 74 70 75 74 |ePlot.pu|t getput|
|00004060| 66 69 6c 65 6e 61 6d 65 | 28 22 54 45 58 54 22 29 |filename|("TEXT")|
|00004070| 20 69 6e 74 6f 20 68 70 | 66 69 6c 65 0d 69 66 20 | into hp|file.if |
|00004080| 68 70 66 69 6c 65 20 3d | 20 65 6d 70 74 79 20 74 |hpfile =| empty t|
|00004090| 68 65 6e 20 65 78 69 74 | 20 64 6f 48 50 66 69 6c |hen exit| doHPfil|
|000040a0| 65 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |e.put em|pty into|
|000040b0| 20 66 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 | f.repea|t with i|
|000040c0| 20 3d 20 6c 65 6e 67 74 | 68 28 68 70 66 69 6c 65 | = lengt|h(hpfile|
|000040d0| 29 20 64 6f 77 6e 20 74 | 6f 20 31 0d 69 66 20 63 |) down t|o 1.if c|
|000040e0| 68 61 72 20 69 20 6f 66 | 20 68 70 66 69 6c 65 20 |har i of| hpfile |
|000040f0| 3d 20 22 3a 22 20 74 68 | 65 6e 0d 70 75 74 20 63 |= ":" th|en.put c|
|00004100| 68 61 72 20 31 20 74 6f | 20 69 20 6f 66 20 68 70 |har 1 to| i of hp|
|00004110| 66 69 6c 65 20 69 6e 74 | 6f 20 70 6c 6f 74 50 61 |file int|o plotPa|
|00004120| 74 68 0d 65 78 69 74 20 | 72 65 70 65 61 74 0d 65 |th.exit |repeat.e|
|00004130| 6e 64 20 69 66 0d 70 75 | 74 20 63 68 61 72 20 69 |nd if.pu|t char i|
|00004140| 20 6f 66 20 68 70 66 69 | 6c 65 20 62 65 66 6f 72 | of hpfi|le befor|
|00004150| 65 20 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 |e f.end |repeat.p|
|00004160| 75 74 20 66 20 69 6e 74 | 6f 20 70 6c 6f 74 4e 61 |ut f int|o plotNa|
|00004170| 6d 65 0d 6e 65 77 50 6c | 6f 74 0d 68 70 32 70 69 |me.newPl|ot.hp2pi|
|00004180| 63 74 20 22 64 72 61 77 | 66 22 2c 20 70 6c 6f 74 |ct "draw|f", plot|
|00004190| 57 69 6e 64 6f 77 2c 20 | 68 70 66 69 6c 65 0d 2d |Window, |hpfile.-|
|000041a0| 2d 20 74 68 65 20 72 65 | 73 75 6c 74 20 63 6f 6e |- the re|sult con|
|000041b0| 74 61 69 6e 73 20 66 75 | 6c 6c 20 68 70 20 73 63 |tains fu|ll hp sc|
|000041c0| 72 69 70 74 20 66 72 6f | 6d 20 66 69 6c 65 0d 2d |ript fro|m file.-|
|000041d0| 2d 67 65 74 20 74 68 65 | 20 72 65 73 75 6c 74 0d |-get the| result.|
|000041e0| 2d 2d 77 72 69 74 65 74 | 6f 66 69 6c 65 20 69 74 |--writet|ofile it|
|000041f0| 2c 74 72 75 65 2c 68 70 | 66 69 6c 65 20 26 20 22 |,true,hp|file & "|
|00004200| 2e 32 22 2c 66 61 6c 73 | 65 2c 22 4d 50 53 20 22 |.2",fals|e,"MPS "|
|00004210| 0d 2d 2d 58 43 4d 44 20 | 57 72 69 74 65 54 6f 46 |.--XCMD |WriteToF|
|00004220| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 65 72 2c 3c 75 |ile cont|ainer,<u|
|00004230| 73 65 50 61 74 68 6e 61 | 6d 65 3e 2c 3c 22 6e 61 |sePathna|me>,<"na|
|00004240| 6d 65 22 3e 2c 3c 61 70 | 70 65 6e 64 3e 2c 3c 63 |me">,<ap|pend>,<c|
|00004250| 72 65 61 74 6f 72 3e 0d | 65 6e 64 20 64 6f 48 50 |reator>.|end doHP|
|00004260| 66 69 6c 65 0d 0d 0d 2d | 2d 20 65 6e 64 20 70 6c |file...-|- end pl|
|00004270| 6f 74 2e 62 61 63 6b 0d | 00 00 00 00 00 00 00 00 |ot.back.|........|
|00004280| 00 00 05 e0 42 4d 41 50 | 00 00 0c 07 00 00 00 00 |....BMAP|........|
|00004290| 00 01 00 00 00 00 00 00 | 01 56 02 00 00 00 00 00 |........|.V......|
|000042a0| 01 56 02 00 00 00 00 00 | 01 56 02 00 00 00 00 00 |.V......|.V......|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 05 94 a3 84 8c 20 |........|....... |
|000042c0| 7f fc e3 2c ff ff 89 20 | aa ac e3 3b 01 aa aa 20 |...,... |...;... |
|000042d0| 55 54 e3 3b 01 f5 55 20 | aa ac e3 3b 01 ea aa 86 |UT.;..U |...;....|
|000042e0| 20 aa ac 1f 01 e2 3b 01 | ea aa 20 55 54 1f 01 e2 | .....;.|.. UT...|
|000042f0| 3b 01 f5 55 a3 86 8b 23 | fc 7e c1 ff 80 fc 9f 80 |;..U...#|.~......|
|00004300| 1f f1 c0 e3 03 23 30 18 | c1 30 c3 87 86 00 06 18 |.....#0.|.0......|
|00004310| c0 e3 03 8a 20 ff f8 24 | a5 86 43 14 00 01 86 e2 |.... ..$|..C.....|
|00004320| 2f 1f ff 20 ff f8 15 01 | e3 26 1f ff 20 ff f8 14 |/.. ....|.&.. ...|
|00004330| 0a e3 27 1f ff 20 ff f8 | 16 80 63 03 e2 69 8f 1c |..'.. ..|..c..i..|
|00004340| c0 e2 2c 1f ff 8b 63 0f | e0 00 a0 00 80 72 14 06 |..,...c.|.....r..|
|00004350| 30 00 19 8d c0 e2 0e 25 | 0f 60 03 c1 01 ec 0f fa |0......%|.`......|
|00004360| 69 bf d2 c0 e2 0e 8a 20 | ff f8 73 0f 00 07 c0 00 |i...... |..s.....|
|00004370| 01 e0 14 02 e2 2d 1f ff | 20 ff f8 35 06 40 04 15 |.....-..| ..5.@..|
|00004380| 0f e2 2e 1f ff 20 ff f8 | 14 0a 28 0f c0 e2 2d 1f |..... ..|..(...-.|
|00004390| ff 20 ff f8 1e 40 e2 2d | 1f ff 8b 46 05 86 00 08 |. ...@.-|...F....|
|000043a0| 52 0a 28 10 68 c0 e2 0f | 63 cc 66 cc 06 fd 19 c1 |R.(.h...|c.f.....|
|000043b0| f8 19 81 2f f9 65 bf d2 | e2 0f 89 20 55 54 1f 01 |.../.e..|... UT..|
|000043c0| e2 3b 01 f5 55 20 aa ac | 1f 01 e2 3b 01 ea aa a8 |.;..U ..|...;....|
|000043d0| 86 20 55 54 e3 3b 01 f5 | 55 20 aa ac e3 3b 01 ea |. UT.;..|U ...;..|
|000043e0| aa 86 8c 20 ff f8 e3 2c | 1f ff 8a 30 ff fa 80 e3 |... ...,|...0....|
|000043f0| 2b 1f ff 30 ff ff 80 e3 | 2b 1f ff 30 ff ff e0 e3 |+..0....|+..0....|
|00004400| 2b 1f ff 30 ff ff a0 e3 | 2b 1f ff 30 ff ff e0 e3 |+..0....|+..0....|
|00004410| 2b 1f ff a2 84 8c 10 80 | e3 16 7f c1 ff ff ff ff |+.......|........|
|00004420| ff ff ff ff 8a e3 17 ff | c1 ff ff ff ff ff ff ff |........|........|
|00004430| ff a3 86 89 10 e0 e3 25 | 3f 55 c1 55 55 55 55 55 |.......%|?U.UUUUU|
|00004440| 55 55 55 10 e0 e3 25 3f | aa c1 aa aa aa aa aa aa |UUU...%?|........|
|00004450| aa aa 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|00004460| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|00004470| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|00004480| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|00004490| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|000044a0| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|000044b0| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|000044c0| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|000044d0| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|000044e0| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|000044f0| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|00004500| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|00004510| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|00004520| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|00004530| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|00004540| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|00004550| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|00004560| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|00004570| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|00004580| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|00004590| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|000045a0| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|000045b0| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|000045c0| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|000045d0| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|000045e0| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|000045f0| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|00004600| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|00004610| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|00004620| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|00004630| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|00004640| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|00004650| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|00004660| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|00004670| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|00004680| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|00004690| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|000046a0| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|000046b0| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|000046c0| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|000046d0| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|000046e0| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|000046f0| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|00004700| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|00004710| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|00004720| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|00004730| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|00004740| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|00004750| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|00004760| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|00004770| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|00004780| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|00004790| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|000047a0| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|000047b0| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|000047c0| 86 89 10 e0 e3 25 3f aa | c1 aa aa aa aa aa aa aa |.....%?.|........|
|000047d0| aa a5 86 8f 20 e0 60 e3 | 24 3f 15 08 86 89 10 e0 |.... .`.|$?......|
|000047e0| e3 25 3f aa c1 aa aa aa | aa aa aa aa aa a5 86 8f |.%?.....|........|
|000047f0| 20 e0 60 e3 24 3f 15 08 | 86 89 10 e0 e3 25 3f aa | .`.$?..|.....%?.|
|00004800| c1 aa aa aa aa aa aa aa | aa a5 86 8f 20 e0 60 e3 |........|.... .`.|
|00004810| 24 3f 15 08 86 89 10 e0 | e3 25 3f aa c1 aa aa aa |$?......|.%?.....|
|00004820| aa aa aa aa aa a5 86 8f | 20 e0 60 e3 24 3f 15 08 |........| .`.$?..|
|00004830| 86 8c 10 80 e3 16 7f c1 | ff ff ff ff ff ff ff ff |........|........|
|00004840| 8a e3 17 ff c1 ff ff ff | ff ff ff ff ff a2 86 01 |........|........|
|00004850| 01 01 01 01 01 01 01 01 | 01 01 ff ff 01 01 01 01 |........|........|
|00004860| 00 00 02 a0 42 4b 47 44 | 00 00 08 cd 00 00 15 ae |....BKGD|........|
|00004870| 00 00 00 00 00 00 00 04 | 00 00 18 16 00 00 0a f2 |........|........|
|00004880| 00 06 00 06 00 00 02 5c | 00 00 00 00 00 00 00 26 |.......\|.......&|
|00004890| 00 01 02 01 00 02 00 11 | 00 2d 01 f0 20 04 00 00 |........|.-.. ...|
|000048a0| 00 00 00 01 00 14 00 18 | 00 00 00 20 74 69 74 6c |........|... titl|
|000048b0| 65 00 00 00 00 66 00 02 | 01 00 00 15 01 c3 00 29 |e....f..|.......)|
|000048c0| 01 d7 20 00 00 00 03 f5 | 00 01 00 00 00 0c 00 00 |.. .....|........|
|000048d0| 00 10 4e 65 78 74 00 00 | 6f 6e 20 6d 6f 75 73 65 |..Next..|on mouse|
|000048e0| 55 70 0d 76 69 73 75 61 | 6c 20 65 66 66 65 63 74 |Up.visua|l effect|
|000048f0| 20 77 69 70 65 20 6c 65 | 66 74 0d 67 6f 20 74 6f | wipe le|ft.go to|
|00004900| 20 6e 65 78 74 20 63 61 | 72 64 0d 65 6e 64 20 6d | next ca|rd.end m|
|00004910| 6f 75 73 65 55 70 0d 0d | 00 00 00 6a 00 03 01 00 |ouseUp..|...j....|
|00004920| 00 04 01 c1 00 17 01 d6 | 20 00 00 00 03 f6 00 01 |........| .......|
|00004930| 00 00 00 0c 00 00 00 10 | 50 72 65 76 00 00 6f 6e |........|Prev..on|
|00004940| 20 6d 6f 75 73 65 55 70 | 0d 76 69 73 75 61 6c 20 | mouseUp|.visual |
|00004950| 65 66 66 65 63 74 20 77 | 69 70 65 20 72 69 67 68 |effect w|ipe righ|
|00004960| 74 0d 67 6f 20 74 6f 20 | 70 72 65 76 69 6f 75 73 |t.go to |previous|
|00004970| 20 63 61 72 64 0d 65 6e | 64 20 6d 6f 75 73 65 55 | card.en|d mouseU|
|00004980| 70 0d 0d 00 00 68 00 04 | 01 00 00 04 01 d9 00 16 |p....h..|........|
|00004990| 01 ee 20 00 00 00 71 5b | 00 01 00 00 00 0c 00 00 |.. ...q[|........|
|000049a0| 00 10 74 6f 20 54 4f 43 | 00 00 6f 6e 20 6d 6f 75 |..to TOC|..on mou|
|000049b0| 73 65 55 70 0d 76 69 73 | 75 61 6c 20 65 66 66 65 |seUp.vis|ual effe|
|000049c0| 63 74 20 77 69 70 65 20 | 64 6f 77 6e 0d 67 6f 20 |ct wipe |down.go |
|000049d0| 74 6f 20 63 61 72 64 20 | 22 54 4f 43 22 0d 65 6e |to card |"TOC".en|
|000049e0| 64 20 6d 6f 75 73 65 55 | 70 0d 00 00 00 d8 00 05 |d mouseU|p.......|
|000049f0| 01 00 00 05 01 99 00 29 | 01 c0 20 00 00 00 13 c3 |.......)|.. .....|
|00004a00| 00 01 00 00 00 0c 00 00 | 00 10 46 69 6c 65 00 00 |........|..File..|
|00004a10| 6f 6e 20 6d 6f 75 73 65 | 55 70 0d 2d 2d 58 43 4d |on mouse|Up.--XCM|
|00004a20| 44 20 57 72 69 74 65 54 | 6f 46 69 6c 65 20 63 6f |D WriteT|oFile co|
|00004a30| 6e 74 61 69 6e 65 72 2c | 3c 75 73 65 50 61 74 68 |ntainer,|<usePath|
|00004a40| 6e 61 6d 65 3e 2c 3c 22 | 6e 61 6d 65 22 3e 2c 3c |name>,<"|name">,<|
|00004a50| 61 70 70 65 6e 64 3e 2c | 3c 63 72 65 61 74 6f 72 |append>,|<creator|
|00004a60| 3e 0d 70 75 74 20 66 69 | 65 6c 64 20 22 74 69 74 |>.put fi|eld "tit|
|00004a70| 6c 65 22 20 69 6e 74 6f | 20 66 69 6c 65 6e 61 6d |le" into| filenam|
|00004a80| 65 0d 77 72 69 74 65 54 | 6f 46 69 6c 65 20 66 69 |e.writeT|oFile fi|
|00004a90| 65 6c 64 20 22 54 65 78 | 74 22 2c 46 41 4c 53 45 |eld "Tex|t",FALSE|
|00004aa0| 2c 66 69 6c 65 4e 61 6d | 65 2c 46 41 4c 53 45 2c |,fileNam|e,FALSE,|
|00004ab0| 22 4d 50 53 20 22 0d 65 | 6e 64 20 6d 6f 75 73 65 |"MPS ".e|nd mouse|
|00004ac0| 55 70 0d 00 00 26 00 06 | 02 01 00 37 00 06 01 4a |Up...&..|...7...J|
|00004ad0| 01 fa 00 07 00 00 00 00 | 00 00 00 16 00 0a 00 00 |........|........|
|00004ae0| 00 0d 74 65 78 74 00 00 | 00 00 00 00 00 00 00 00 |..text..|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 00 00 60 42 4d 41 50 | 00 00 15 ae 00 00 00 00 |...`BMAP|........|
|00004b10| 00 01 00 00 00 00 00 00 | 01 56 02 00 00 00 00 00 |........|.V......|
|00004b20| 01 56 02 00 00 00 00 00 | 01 56 02 00 00 00 00 00 |.V......|.V......|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 18 bf 84 bf 84 |........|........|
|00004b40| bf 84 bf 84 bf 84 bf 84 | bf 84 bf 84 bf 84 bf 84 |........|........|
|00004b50| bf 84 84 01 01 01 01 01 | 01 01 01 01 01 01 01 01 |........|........|
|00004b60| 00 00 00 40 42 4b 47 44 | 00 00 18 16 00 00 1a 78 |...@BKGD|.......x|
|00004b70| 00 00 00 00 00 00 00 01 | 00 00 0a f2 00 00 08 cd |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 60 42 4d 41 50 | 00 00 1a 78 00 00 00 00 |...`BMAP|...x....|
|00004bb0| 00 01 00 00 00 00 00 00 | 01 56 02 00 00 00 00 00 |........|.V......|
|00004bc0| 01 56 02 00 00 00 00 00 | 01 56 02 00 00 00 00 00 |.V......|.V......|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 18 bf 84 bf 84 |........|........|
|00004be0| bf 84 bf 84 bf 84 bf 84 | bf 84 bf 84 bf 84 bf 84 |........|........|
|00004bf0| bf 84 84 01 01 01 01 01 | 01 01 01 01 01 01 01 01 |........|........|
|00004c00| 00 00 05 60 43 41 52 44 | 00 00 19 7f 00 00 00 00 |...`CARD|........|
|00004c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 1d 92 |........|........|
|00004c20| 00 00 18 16 00 08 00 08 | 00 00 02 3a 00 03 00 00 |........|...:....|
|00004c30| 02 e8 00 26 00 01 02 01 | 00 02 00 11 00 2d 01 f0 |...&....|.....-..|
|00004c40| 20 04 00 00 00 00 00 01 | 00 14 00 18 00 00 00 20 | .......|....... |
|00004c50| 74 69 74 6c 65 00 00 00 | 00 26 00 02 02 01 00 46 |title...|.&.....F|
|00004c60| 00 13 00 ac 01 ee 20 02 | 00 00 00 00 00 00 00 14 |...... .|........|
|00004c70| 00 0c 00 00 00 10 74 65 | 78 74 00 00 00 00 00 22 |......te|xt....."|
|00004c80| 00 03 02 01 00 e9 00 43 | 01 43 01 be 20 02 00 00 |.......C|.C.. ...|
|00004c90| 00 00 00 01 00 14 00 0c | 00 00 00 10 00 00 00 00 |........|........|
|00004ca0| 00 66 00 04 01 00 00 15 | 01 c3 00 29 01 d7 20 00 |.f......|...).. .|
|00004cb0| 00 00 03 f5 00 01 00 00 | 00 0c 00 00 00 10 4e 65 |........|......Ne|
|00004cc0| 78 74 00 00 6f 6e 20 6d | 6f 75 73 65 55 70 0d 76 |xt..on m|ouseUp.v|
|00004cd0| 69 73 75 61 6c 20 65 66 | 66 65 63 74 20 77 69 70 |isual ef|fect wip|
|00004ce0| 65 20 6c 65 66 74 0d 67 | 6f 20 74 6f 20 6e 65 78 |e left.g|o to nex|
|00004cf0| 74 20 63 61 72 64 0d 65 | 6e 64 20 6d 6f 75 73 65 |t card.e|nd mouse|
|00004d00| 55 70 0d 0d 00 00 00 6a | 00 05 01 00 00 04 01 c1 |Up.....j|........|
|00004d10| 00 17 01 d6 20 00 00 00 | 03 f6 00 01 00 00 00 0c |.... ...|........|
|00004d20| 00 00 00 10 50 72 65 76 | 00 00 6f 6e 20 6d 6f 75 |....Prev|..on mou|
|00004d30| 73 65 55 70 0d 76 69 73 | 75 61 6c 20 65 66 66 65 |seUp.vis|ual effe|
|00004d40| 63 74 20 77 69 70 65 20 | 72 69 67 68 74 0d 67 6f |ct wipe |right.go|
|00004d50| 20 74 6f 20 70 72 65 76 | 69 6f 75 73 20 63 61 72 | to prev|ious car|
|00004d60| 64 0d 65 6e 64 20 6d 6f | 75 73 65 55 70 0d 0d 00 |d.end mo|useUp...|
|00004d70| 00 5e 00 06 01 00 00 8e | 00 1a 00 9f 00 7b 20 00 |.^......|.....{ .|
|00004d80| 00 00 00 00 00 01 00 00 | 00 0c 00 00 00 10 00 00 |........|........|
|00004d90| 6f 6e 20 6d 6f 75 73 65 | 55 70 0d 65 64 69 74 20 |on mouse|Up.edit |
|00004da0| 73 63 72 69 70 74 20 6f | 66 20 62 61 63 6b 67 72 |script o|f backgr|
|00004db0| 6f 75 6e 64 20 22 50 6c | 6f 74 2e 42 61 63 6b 22 |ound "Pl|ot.Back"|
|00004dc0| 0d 65 6e 64 20 6d 6f 75 | 73 65 55 70 0d 00 00 52 |.end mou|seUp...R|
|00004dd0| 00 07 01 00 00 7c 00 1b | 00 8c 00 75 20 00 00 00 |.....|..|...u ...|
|00004de0| 00 00 00 01 00 00 00 0c | 00 00 00 10 00 00 6f 6e |........|......on|
|00004df0| 20 6d 6f 75 73 65 55 70 | 0d 67 6f 20 63 61 72 64 | mouseUp|.go card|
|00004e00| 20 20 22 68 70 32 70 69 | 63 74 58 43 4d 44 2e 63 | "hp2pi|ctXCMD.c|
|00004e10| 22 0d 65 6e 64 20 6d 6f | 75 73 65 55 70 0d 00 00 |".end mo|useUp...|
|00004e20| 00 4c 00 08 01 00 00 af | 00 10 00 e8 00 4e a0 03 |.L......|.....N..|
|00004e30| 00 00 69 04 00 01 00 00 | 00 0c 00 00 00 10 50 6c |..i.....|......Pl|
|00004e40| 6f 74 00 00 6f 6e 20 6d | 6f 75 73 65 55 70 0d 67 |ot..on m|ouseUp.g|
|00004e50| 6f 20 63 61 72 64 20 22 | 70 6c 6f 74 22 0d 65 6e |o card "|plot".en|
|00004e60| 64 20 6d 6f 75 73 65 55 | 70 0d 00 00 ff fe 54 68 |d mouseU|p.....Th|
|00004e70| 69 73 20 73 74 61 63 6b | 20 63 6f 6e 74 61 69 6e |is stack| contain|
|00004e80| 73 20 61 6e 20 58 43 4d | 44 20 74 68 61 74 20 74 |s an XCM|D that t|
|00004e90| 72 61 6e 73 6c 61 74 65 | 73 20 48 65 77 6c 65 74 |ranslate|s Hewlet|
|00004ea0| 74 20 50 61 63 6b 61 72 | 64 20 47 72 61 70 68 69 |t Packar|d Graphi|
|00004eb0| 63 73 20 4c 61 6e 67 75 | 61 67 65 20 28 48 50 47 |cs Langu|age (HPG|
|00004ec0| 4c 29 20 73 63 72 69 70 | 74 73 20 69 6e 74 6f 20 |L) scrip|ts into |
|00004ed0| 4d 61 63 69 6e 74 6f 73 | 68 20 50 69 63 74 75 72 |Macintos|h Pictur|
|00004ee0| 65 73 20 28 50 49 43 54 | 20 66 6f 72 6d 61 74 29 |es (PICT| format)|
|00004ef0| 2e 20 20 54 68 69 73 20 | 76 65 72 73 69 6f 6e 20 |. This |version |
|00004f00| 74 72 61 6e 73 6c 61 74 | 65 73 20 74 68 65 20 62 |translat|es the b|
|00004f10| 61 73 69 63 20 6c 69 6e | 65 20 64 72 61 77 69 6e |asic lin|e drawin|
|00004f20| 67 20 61 6e 64 20 6c 61 | 62 65 6c 6c 69 6e 67 20 |g and la|belling |
|00004f30| 63 6f 6d 6d 61 6e 64 73 | 20 6f 66 20 48 50 47 4c |commands| of HPGL|
|00004f40| 2e 20 20 4d 61 6e 79 20 | 6f 74 68 65 72 20 63 6f |. Many |other co|
|00004f50| 6d 6d 61 6e 64 73 20 28 | 66 69 6c 6c 73 2c 20 6f |mmands (|fills, o|
|00004f60| 62 6a 65 63 74 73 2c 20 | 65 74 63 2e 29 20 61 72 |bjects, |etc.) ar|
|00004f70| 65 20 6e 6f 74 20 69 6d | 70 6c 65 6d 65 6e 74 65 |e not im|plemente|
|00004f80| 64 2e 20 20 54 68 65 20 | 73 6f 75 72 63 65 20 63 |d. The |source c|
|00004f90| 6f 64 65 2a 2c 20 69 6e | 20 4d 50 57 20 43 2c 20 |ode*, in| MPW C, |
|00004fa0| 69 73 20 69 6e 63 6c 75 | 64 65 64 20 66 6f 72 20 |is inclu|ded for |
|00004fb0| 79 6f 75 72 20 74 77 65 | 61 6b 69 6e 67 20 70 6c |your twe|aking pl|
|00004fc0| 65 61 73 75 72 65 73 2e | 20 20 53 65 65 20 74 68 |easures.| See th|
|00004fd0| 65 20 22 50 6c 6f 74 2e | 42 61 63 6b 22 20 62 61 |e "Plot.|Back" ba|
|00004fe0| 63 6b 67 72 6f 75 6e 64 | 20 73 63 72 69 70 74 20 |ckground| script |
|00004ff0| 2a 20 66 6f 72 20 48 79 | 70 65 72 54 61 6c 6b 20 |* for Hy|perTalk |
|00005000| 72 6f 75 74 69 6e 65 73 | 20 77 68 69 63 68 20 63 |routines| which c|
|00005010| 61 6c 6c 20 68 70 32 70 | 69 63 74 58 43 4d 44 2e |all hp2p|ictXCMD.|
|00005020| 0d 00 ff fd 43 6f 70 79 | 72 69 67 68 74 20 31 39 |....Copy|right 19|
|00005030| 39 30 20 62 79 20 44 2e | 47 2e 20 47 69 6c 62 65 |90 by D.|G. Gilbe|
|00005040| 72 74 2e 20 20 0d 64 6f | 67 53 74 61 72 20 53 6f |rt. .do|gStar So|
|00005050| 66 74 77 61 72 65 20 26 | 20 42 69 6f 6c 6f 67 79 |ftware &| Biology|
|00005060| 20 44 65 70 74 2e 2c 20 | 49 6e 64 69 61 6e 61 20 | Dept., |Indiana |
|00005070| 55 6e 69 76 65 72 73 69 | 74 79 0d 65 6d 61 69 6c |Universi|ty.email|
|00005080| 3a 20 20 44 6f 6e 2e 47 | 69 6c 62 65 72 74 40 49 |: Don.G|ilbert@I|
|00005090| 75 62 69 6f 2e 42 69 6f | 2e 49 6e 64 69 61 6e 61 |ubio.Bio|.Indiana|
|000050a0| 2e 45 64 75 0d 59 6f 75 | 20 6d 61 79 20 75 73 65 |.Edu.You| may use|
|000050b0| 20 61 6e 64 20 72 65 2d | 64 69 73 74 72 69 62 75 | and re-|distribu|
|000050c0| 74 65 20 74 68 69 73 20 | 6d 61 74 65 72 69 61 6c |te this |material|
|000050d0| 20 61 73 20 79 6f 75 20 | 77 69 73 68 20 77 69 74 | as you |wish wit|
|000050e0| 68 20 74 68 65 20 65 78 | 63 65 70 74 69 6f 6e 73 |h the ex|ceptions|
|000050f0| 20 74 68 61 74 20 79 6f | 75 20 6d 61 79 20 6e 6f | that yo|u may no|
|00005100| 74 20 73 65 6c 6c 20 69 | 74 2c 20 6f 72 20 72 65 |t sell i|t, or re|
|00005110| 6d 6f 76 65 20 6f 72 20 | 61 6c 74 65 72 20 74 68 |move or |alter th|
|00005120| 65 20 63 6f 70 79 72 69 | 67 68 74 20 73 74 61 74 |e copyri|ght stat|
|00005130| 65 6d 65 6e 74 2e 00 ff | ff 48 50 47 4c 20 74 6f |ement...|.HPGL to|
|00005140| 20 50 49 43 54 75 72 65 | 20 54 72 61 6e 73 6c 61 | PICTure| Transla|
|00005150| 74 6f 72 00 54 4f 43 00 | 00 00 00 00 00 00 00 00 |tor.TOC.|........|
|00005160| 00 00 2c 80 43 41 52 44 | 00 00 16 00 00 00 00 00 |..,.CARD|........|
|00005170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 1d 92 |........|........|
|00005180| 00 00 08 cd 00 00 00 03 | 00 00 00 00 00 02 00 00 |........|........|
|00005190| 2c 31 00 01 68 70 32 70 | 69 63 74 58 43 4d 44 2e |,1..hp2p|ictXCMD.|
|000051a0| 63 00 00 06 2f 2a 20 68 | 70 32 70 69 63 74 58 43 |c.../* h|p2pictXC|
|000051b0| 4d 44 2e 63 0d 20 2a 0d | 20 2a 0d 20 2a 20 43 6f |MD.c. *.| *. * Co|
|000051c0| 70 79 72 69 67 68 74 20 | 31 39 39 30 20 62 79 20 |pyright |1990 by |
|000051d0| 64 2e 67 2e 67 69 6c 62 | 65 72 74 2e 0d 20 2a 20 |d.g.gilb|ert.. * |
|000051e0| 64 6f 67 53 74 61 72 20 | 53 6f 66 74 77 61 72 65 |dogStar |Software|
|000051f0| 20 26 26 20 49 6e 64 69 | 61 6e 61 20 55 6e 69 76 | && Indi|ana Univ|
|00005200| 65 72 73 69 74 79 20 42 | 69 6f 6c 6f 67 79 20 44 |ersity B|iology D|
|00005210| 65 70 74 2e 0d 20 2a 20 | 65 6d 61 69 6c 3a 20 67 |ept.. * |email: g|
|00005220| 69 6c 62 65 72 74 64 40 | 69 75 62 69 6f 2e 62 69 |ilbertd@|iubio.bi|
|00005230| 6f 2e 69 6e 64 69 61 6e | 61 2e 65 64 75 0d 20 2a |o.indian|a.edu. *|
|00005240| 0d 20 2a 20 4c 61 6e 67 | 75 61 67 65 3a 20 4d 50 |. * Lang|uage: MP|
|00005250| 57 2d 43 20 33 2e 30 0d | 20 2a 0d 20 2a 2f 0d 0d |W-C 3.0.| *. */..|
|00005260| 2f 2a 0d 0d 20 20 27 48 | 50 32 50 69 63 74 20 44 |/*.. 'H|P2Pict D|
|00005270| 65 63 6b 27 20 61 20 48 | 79 70 65 72 63 61 72 64 |eck' a H|ypercard|
|00005280| 20 73 74 61 63 6b 20 74 | 68 61 74 20 63 6f 6e 74 | stack t|hat cont|
|00005290| 61 69 6e 73 20 61 6e 20 | 58 43 4d 44 20 74 68 61 |ains an |XCMD tha|
|000052a0| 74 20 74 72 61 6e 73 6c | 61 74 65 73 0d 20 20 48 |t transl|ates. H|
|000052b0| 65 77 6c 65 74 74 20 50 | 61 63 6b 61 72 64 20 47 |ewlett P|ackard G|
|000052c0| 72 61 70 68 69 63 73 20 | 4c 61 6e 67 75 61 67 65 |raphics |Language|
|000052d0| 20 28 48 50 47 4c 29 20 | 73 63 72 69 70 74 73 20 | (HPGL) |scripts |
|000052e0| 69 6e 74 6f 20 4d 61 63 | 69 6e 74 6f 73 68 20 50 |into Mac|intosh P|
|000052f0| 69 63 74 75 72 65 73 0d | 20 20 28 50 49 43 54 20 |ictures.| (PICT |
|00005300| 66 6f 72 6d 61 74 29 2e | 0d 0d 20 20 54 68 69 73 |format).|.. This|
|00005310| 20 76 65 72 73 69 6f 6e | 20 74 72 61 6e 73 6c 61 | version| transla|
|00005320| 74 65 73 20 74 68 65 20 | 62 61 73 69 63 20 6c 69 |tes the |basic li|
|00005330| 6e 65 20 64 72 61 77 69 | 6e 67 20 61 6e 64 20 6c |ne drawi|ng and l|
|00005340| 61 62 65 6c 6c 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 |abelling| command|
|00005350| 73 0d 20 20 6f 66 20 48 | 50 47 4c 2e 20 20 4d 61 |s. of H|PGL. Ma|
|00005360| 6e 79 20 6f 74 68 65 72 | 20 63 6f 6d 6d 61 6e 64 |ny other| command|
|00005370| 73 20 28 66 69 6c 6c 73 | 2c 20 6f 62 6a 65 63 74 |s (fills|, object|
|00005380| 73 2c 20 65 74 63 2e 29 | 20 61 72 65 20 6e 6f 74 |s, etc.)| are not|
|00005390| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 2e 0d 20 20 | impleme|nted.. |
|000053a0| 54 68 65 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2c |The sour|ce code,|
|000053b0| 20 69 6e 20 4d 50 57 20 | 43 2c 20 69 73 20 69 6e | in MPW |C, is in|
|000053c0| 63 6c 75 64 65 64 2e 0d | 0d 20 20 54 68 69 73 20 |cluded..|. This |
|000053d0| 58 43 4d 44 20 63 72 65 | 61 74 65 73 20 61 20 66 |XCMD cre|ates a f|
|000053e0| 6c 6f 61 74 69 6e 67 2c | 20 6e 6f 20 67 6f 2d 61 |loating,| no go-a|
|000053f0| 77 61 79 20 77 69 6e 64 | 6f 77 20 77 69 74 68 20 |way wind|ow with |
|00005400| 61 20 70 69 63 74 75 72 | 65 20 74 68 61 74 20 69 |a pictur|e that i|
|00005410| 73 0d 20 20 74 72 61 6e | 73 6c 61 74 65 64 20 66 |s. tran|slated f|
|00005420| 72 6f 6d 20 48 50 47 4c | 20 67 72 61 70 68 69 63 |rom HPGL| graphic|
|00005430| 73 20 73 63 72 69 70 74 | 0d 0d 20 20 20 20 20 20 |s script|.. |
|00005440| 43 61 72 64 20 73 79 6e | 74 61 78 20 69 73 3a 0d |Card syn|tax is:.|
|00005450| 0d 20 20 68 70 32 70 69 | 63 74 20 22 4f 70 65 6e |. hp2pi|ct "Open|
|00005460| 22 2c 20 6e 61 6d 65 2c | 20 5b 72 65 63 74 5d 20 |", name,| [rect] |
|00005470| 20 20 2d 2d 20 6f 70 65 | 6e 20 62 6c 61 6e 6b 20 | -- ope|n blank |
|00005480| 77 69 6e 64 6f 77 0d 20 | 20 20 20 20 20 2a 20 72 |window. | * r|
|00005490| 65 74 75 72 6e 73 20 77 | 69 6e 64 6f 77 20 70 6f |eturns w|indow po|
|000054a0| 69 6e 74 65 72 20 61 73 | 20 54 68 65 20 52 65 73 |inter as| The Res|
|000054b0| 75 6c 74 0d 0d 20 20 68 | 70 32 70 69 63 74 20 22 |ult.. h|p2pict "|
|000054c0| 44 72 61 77 46 22 2c 20 | 77 69 6e 64 6f 77 20 70 |DrawF", |window p|
|000054d0| 6f 69 6e 74 65 72 2c 20 | 46 49 4c 45 20 77 2f 20 |ointer, |FILE w/ |
|000054e0| 48 50 47 4c 0d 20 20 68 | 70 32 70 69 63 74 20 22 |HPGL. h|p2pict "|
|000054f0| 44 72 61 77 43 22 2c 20 | 77 69 6e 64 6f 77 20 70 |DrawC", |window p|
|00005500| 6f 69 6e 74 65 72 2c 20 | 43 4f 4e 54 41 49 4e 45 |ointer, |CONTAINE|
|00005510| 52 20 77 2f 20 48 50 47 | 4c 0d 20 20 20 20 20 20 |R w/ HPG|L. |
|00005520| 20 20 20 20 2d 2d 20 64 | 72 61 77 20 68 70 20 63 | -- d|raw hp c|
|00005530| 6f 6e 74 65 6e 74 73 20 | 74 6f 20 77 69 6e 64 6f |ontents |to windo|
|00005540| 77 0d 0d 20 20 68 70 32 | 70 69 63 74 20 22 46 69 |w.. hp2|pict "Fi|
|00005550| 6c 65 22 2c 20 77 69 6e | 64 6f 77 20 70 6f 69 6e |le", win|dow poin|
|00005560| 74 65 72 2c 20 66 69 6c | 65 6e 61 6d 65 2c 20 5b |ter, fil|ename, [|
|00005570| 66 69 6c 65 63 72 65 61 | 74 6f 72 5d 20 2d 2d 20 |filecrea|tor] -- |
|00005580| 73 61 76 65 20 70 69 63 | 74 20 61 73 20 66 69 6c |save pic|t as fil|
|00005590| 65 0d 0d 20 20 68 70 32 | 70 69 63 74 20 22 43 6c |e.. hp2|pict "Cl|
|000055a0| 69 70 22 2c 20 77 69 6e | 64 6f 77 20 70 6f 69 6e |ip", win|dow poin|
|000055b0| 74 65 72 20 20 20 2d 2d | 20 70 75 74 20 77 69 6e |ter --| put win|
|000055c0| 64 6f 77 20 70 69 63 74 | 20 69 6e 74 6f 20 63 6c |dow pict| into cl|
|000055d0| 69 70 62 64 0d 0d 20 20 | 68 70 32 70 69 63 74 20 |ipbd.. |hp2pict |
|000055e0| 22 50 72 69 6e 74 22 2c | 20 77 69 6e 64 6f 77 20 |"Print",| window |
|000055f0| 70 6f 69 6e 74 65 72 20 | 20 20 2d 2d 20 70 72 69 |pointer | -- pri|
|00005600| 6e 74 20 77 69 6e 64 6f | 77 20 70 69 63 74 0d 0d |nt windo|w pict..|
|00005610| 20 20 68 70 32 70 69 63 | 74 20 22 43 6c 6f 73 65 | hp2pic|t "Close|
|00005620| 22 2c 20 77 69 6e 64 6f | 77 20 70 6f 69 6e 74 65 |", windo|w pointe|
|00005630| 72 20 20 20 2d 2d 20 63 | 6c 6f 73 65 20 26 20 64 |r -- c|lose & d|
|00005640| 69 73 70 6f 73 65 20 6f | 66 20 77 69 6e 64 6f 77 |ispose o|f window|
|00005650| 0d 0d 2a 2f 0d 0d 2f 2a | 2d 2d 2d 2d 2d 2d 2d 2d |..*/../*|--------|
|00005660| 20 4d 61 6b 65 66 69 6c | 65 0d 0d 20 20 43 20 2d | Makefil|e.. C -|
|00005670| 62 20 68 70 32 70 69 63 | 74 58 43 4d 44 2e 63 20 |b hp2pic|tXCMD.c |
|00005680| 2d 6d 62 67 20 6f 66 66 | 0d 20 20 4c 69 6e 6b 20 |-mbg off|. Link |
|00005690| 2d 77 20 2d 72 74 20 58 | 43 4d 44 3d 31 30 30 30 |-w -rt X|CMD=1000|
|000056a0| 33 20 b6 0d 20 20 20 20 | 2d 6d 20 45 4e 54 52 59 |3 .. |-m ENTRY|
|000056b0| 50 4f 49 4e 54 20 b6 0d | 20 20 20 20 2d 73 67 20 |POINT ..| -sg |
|000056c0| 68 70 32 70 69 63 74 20 | b6 0d 20 20 20 20 68 70 |hp2pict |.. hp|
|000056d0| 32 70 69 63 74 58 43 4d | 44 2e 63 2e 6f 20 b6 0d |2pictXCM|D.c.o ..|
|000056e0| 20 20 20 20 22 7b 4c 69 | 62 72 61 72 69 65 73 7d | "{Li|braries}|
|000056f0| 48 79 70 65 72 58 4c 69 | 62 2e 6f 22 20 b6 0d 20 |HyperXLi|b.o" .. |
|00005700| 20 20 20 22 7b 4c 69 62 | 72 61 72 69 65 73 7d 49 | "{Lib|raries}I|
|00005710| 6e 74 65 72 66 61 63 65 | 2e 6f 22 20 b6 0d 20 20 |nterface|.o" .. |
|00005720| 20 20 22 7b 43 4c 69 62 | 72 61 72 69 65 73 7d 53 | "{CLib|raries}S|
|00005730| 74 64 43 4c 69 62 2e 6f | 22 20 b6 0d 20 20 20 20 |tdCLib.o|" .. |
|00005740| 22 7b 43 6c 69 62 72 61 | 72 69 65 73 7d 22 43 53 |"{Clibra|ries}"CS|
|00005750| 41 4e 45 4c 69 62 2e 6f | 20 b6 0d 20 20 20 20 22 |ANELib.o| .. "|
|00005760| 7b 43 6c 69 62 72 61 72 | 69 65 73 7d 22 43 69 6e |{Clibrar|ies}"Cin|
|00005770| 74 65 72 66 61 63 65 2e | 6f 20 b6 0d 20 20 20 20 |terface.|o .. |
|00005780| 22 7b 43 4c 69 62 72 61 | 72 69 65 73 7d 43 52 75 |"{CLibra|ries}CRu|
|00005790| 6e 74 69 6d 65 2e 6f 22 | 20 b6 0d 20 20 20 20 2d |ntime.o"| .. -|
|000057a0| 6f 20 22 68 70 32 70 69 | 63 74 20 64 65 63 6b 22 |o "hp2pi|ct deck"|
|000057b0| 0d 23 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.#------|--------|
|000057c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2a 2f 0d 0d 0d |--------|---*/...|
|000057d0| 0d 2f 2a 23 69 6e 63 6c | 75 64 65 20 3c 43 54 79 |./*#incl|ude <CTy|
|000057e0| 70 65 2e 68 3e 2a 2f 0d | 23 69 6e 63 6c 75 64 65 |pe.h>*/.|#include|
|000057f0| 20 3c 54 79 70 65 73 2e | 68 3e 0d 23 69 6e 63 6c | <Types.|h>.#incl|
|00005800| 75 64 65 20 3c 53 74 64 | 49 4f 2e 68 3e 0d 23 69 |ude <Std|IO.h>.#i|
|00005810| 6e 63 6c 75 64 65 20 3c | 53 61 6e 65 2e 68 3e 0d |nclude <|Sane.h>.|
|00005820| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 61 74 68 2e 68 |#include| <Math.h|
|00005830| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 51 75 69 63 |>.#inclu|de <Quic|
|00005840| 6b 44 72 61 77 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |kDraw.h>|.#includ|
|00005850| 65 20 3c 46 69 78 4d 61 | 74 68 2e 68 3e 0d 23 69 |e <FixMa|th.h>.#i|
|00005860| 6e 63 6c 75 64 65 20 3c | 46 6f 6e 74 73 2e 68 3e |nclude <|Fonts.h>|
|00005870| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 4d 65 6d 6f 72 |.#includ|e <Memor|
|00005880| 79 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 53 |y.h>.#in|clude <S|
|00005890| 63 72 61 70 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |crap.h>.|#include|
|000058a0| 20 3c 4f 53 45 76 65 6e | 74 73 2e 68 3e 0d 23 69 | <OSEven|ts.h>.#i|
|000058b0| 6e 63 6c 75 64 65 20 3c | 4f 53 55 74 69 6c 73 2e |nclude <|OSUtils.|
|000058c0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 46 69 6c |h>.#incl|ude <Fil|
|000058d0| 65 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|000058e0| 52 65 73 6f 75 72 63 65 | 73 2e 68 3e 0d 23 69 6e |Resource|s.h>.#in|
|000058f0| 63 6c 75 64 65 20 3c 57 | 69 6e 64 6f 77 73 2e 68 |clude <W|indows.h|
|00005900| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 45 76 65 6e |>.#inclu|de <Even|
|00005910| 74 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ts.h>.#i|nclude <|
|00005920| 54 6f 6f 6c 55 74 69 6c | 73 2e 68 3e 0d 23 69 6e |ToolUtil|s.h>.#in|
|00005930| 63 6c 75 64 65 20 3c 44 | 69 61 6c 6f 67 73 2e 68 |clude <D|ialogs.h|
|00005940| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 50 72 69 6e |>.#inclu|de <Prin|
|00005950| 74 54 72 61 70 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |tTraps.h|>.#inclu|
|00005960| 64 65 20 3c 48 79 70 65 | 72 58 43 6d 64 2e 68 3e |de <Hype|rXCmd.h>|
|00005970| 0d 0d 20 20 2f 2a 20 64 | 72 61 77 20 66 6f 72 6d |.. /* d|raw form|
|00005980| 61 74 73 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 44 |ats */.#|define D|
|00005990| 46 49 4c 45 20 20 20 31 | 0d 23 64 65 66 69 6e 65 |FILE 1|.#define|
|000059a0| 20 44 43 41 52 44 20 20 | 20 32 0d 23 64 65 66 69 | DCARD | 2.#defi|
|000059b0| 6e 65 20 44 43 4f 4d 4d | 20 20 20 33 0d 0d 76 6f |ne DCOMM| 3..vo|
|000059c0| 69 64 20 20 72 65 74 75 | 72 6e 56 61 6c 75 65 28 |id retu|rnValue(|
|000059d0| 58 43 6d 64 50 74 72 20 | 70 58 43 6d 64 2c 20 63 |XCmdPtr |pXCmd, c|
|000059e0| 68 61 72 20 2a 74 68 65 | 52 65 73 75 6c 74 29 3b |har *the|Result);|
|000059f0| 0d 76 6f 69 64 20 20 75 | 70 63 61 73 65 28 63 68 |.void u|pcase(ch|
|00005a00| 61 72 20 2a 73 29 3b 0d | 76 6f 69 64 20 20 4f 70 |ar *s);.|void Op|
|00005a10| 65 6e 48 50 57 69 6e 64 | 28 58 43 6d 64 50 74 72 |enHPWind|(XCmdPtr|
|00005a20| 20 70 58 43 6d 64 29 3b | 0d 76 6f 69 64 20 20 44 | pXCmd);|.void D|
|00005a30| 72 61 77 48 50 57 69 6e | 64 28 58 43 6d 64 50 74 |rawHPWin|d(XCmdPt|
|00005a40| 72 20 70 58 43 6d 64 2c | 20 69 6e 74 20 66 6f 72 |r pXCmd,| int for|
|00005a50| 6d 61 74 29 3b 0d 76 6f | 69 64 20 20 46 69 6c 65 |mat);.vo|id File|
|00005a60| 48 50 57 69 6e 64 28 58 | 43 6d 64 50 74 72 20 70 |HPWind(X|CmdPtr p|
|00005a70| 58 43 6d 64 29 3b 0d 76 | 6f 69 64 20 20 43 6c 69 |XCmd);.v|oid Cli|
|00005a80| 70 48 50 57 69 6e 64 28 | 58 43 6d 64 50 74 72 20 |pHPWind(|XCmdPtr |
|00005a90| 70 58 43 6d 64 29 3b 0d | 76 6f 69 64 20 20 50 72 |pXCmd);.|void Pr|
|00005aa0| 69 6e 74 48 50 57 69 6e | 64 28 58 43 6d 64 50 74 |intHPWin|d(XCmdPt|
|00005ab0| 72 20 70 58 43 6d 64 29 | 3b 0d 76 6f 69 64 20 20 |r pXCmd)|;.void |
|00005ac0| 43 6c 6f 73 65 48 50 57 | 69 6e 64 28 58 43 6d 64 |CloseHPW|ind(XCmd|
|00005ad0| 50 74 72 20 70 58 43 6d | 64 29 3b 0d 0d 0d 2f 2a |Ptr pXCm|d);.../*|
|00005ae0| 20 58 43 4d 44 20 65 6e | 74 72 79 20 2d 2d 20 4d | XCMD en|try -- M|
|00005af0| 55 53 54 20 42 45 20 46 | 49 52 53 54 20 43 4f 44 |UST BE F|IRST COD|
|00005b00| 45 20 49 4e 20 53 45 47 | 20 2a 2f 0d 0d 70 61 73 |E IN SEG| */..pas|
|00005b10| 63 61 6c 20 76 6f 69 64 | 20 45 6e 74 72 79 50 6f |cal void| EntryPo|
|00005b20| 69 6e 74 28 58 43 6d 64 | 50 74 72 20 70 58 43 6d |int(XCmd|Ptr pXCm|
|00005b30| 64 29 0d 7b 0d 20 20 50 | 74 72 20 20 20 20 20 20 |d).{. P|tr |
|00005b40| 20 74 68 65 4d 65 73 73 | 61 67 65 3b 0d 20 20 63 | theMess|age;. c|
|00005b50| 68 61 72 20 20 20 20 20 | 20 6d 65 73 73 61 67 65 |har | message|
|00005b60| 5b 33 32 5d 3b 0d 20 20 | 47 72 61 66 50 74 72 20 |[32];. |GrafPtr |
|00005b70| 20 20 63 61 72 64 70 6f | 72 74 3b 0d 0d 20 20 47 | cardpo|rt;.. G|
|00005b80| 65 74 50 6f 72 74 28 20 | 26 63 61 72 64 70 6f 72 |etPort( |&cardpor|
|00005b90| 74 29 3b 0d 20 20 74 68 | 65 4d 65 73 73 61 67 65 |t);. th|eMessage|
|00005ba0| 20 3d 20 2a 28 70 58 43 | 6d 64 2d 3e 70 61 72 61 | = *(pXC|md->para|
|00005bb0| 6d 73 5b 30 5d 29 3b 0d | 20 20 73 74 72 63 70 79 |ms[0]);.| strcpy|
|00005bc0| 28 6d 65 73 73 61 67 65 | 2c 74 68 65 4d 65 73 73 |(message|,theMess|
|00005bd0| 61 67 65 29 3b 0d 20 20 | 75 70 63 61 73 65 28 6d |age);. |upcase(m|
|00005be0| 65 73 73 61 67 65 29 3b | 0d 20 20 70 58 43 6d 64 |essage);|. pXCmd|
|00005bf0| 2d 3e 69 6e 41 72 67 73 | 5b 30 5d 20 3d 20 28 6c |->inArgs|[0] = (l|
|00005c00| 6f 6e 67 29 20 63 61 72 | 64 70 6f 72 74 3b 20 2f |ong) car|dport; /|
|00005c10| 2a 20 67 6c 6f 62 61 6c | 20 66 6f 72 20 73 75 62 |* global| for sub|
|00005c20| 73 20 2a 2f 0d 0d 20 20 | 69 66 20 28 73 74 72 63 |s */.. |if (strc|
|00005c30| 6d 70 28 6d 65 73 73 61 | 67 65 2c 22 4f 50 45 4e |mp(messa|ge,"OPEN|
|00005c40| 22 29 3d 3d 30 29 20 20 | 20 20 20 20 20 20 4f 70 |")==0) | Op|
|00005c50| 65 6e 48 50 57 69 6e 64 | 28 70 58 43 6d 64 29 3b |enHPWind|(pXCmd);|
|00005c60| 0d 20 20 65 6c 73 65 20 | 69 66 20 28 73 74 72 63 |. else |if (strc|
|00005c70| 6d 70 28 6d 65 73 73 61 | 67 65 2c 22 44 52 41 57 |mp(messa|ge,"DRAW|
|00005c80| 46 22 29 3d 3d 30 29 20 | 20 44 72 61 77 48 50 57 |F")==0) | DrawHPW|
|00005c90| 69 6e 64 28 70 58 43 6d | 64 2c 20 44 46 49 4c 45 |ind(pXCm|d, DFILE|
|00005ca0| 29 3b 0d 20 20 65 6c 73 | 65 20 69 66 20 28 73 74 |);. els|e if (st|
|00005cb0| 72 63 6d 70 28 6d 65 73 | 73 61 67 65 2c 22 44 52 |rcmp(mes|sage,"DR|
|00005cc0| 41 57 43 22 29 3d 3d 30 | 29 20 20 44 72 61 77 48 |AWC")==0|) DrawH|
|00005cd0| 50 57 69 6e 64 28 70 58 | 43 6d 64 2c 20 44 43 41 |PWind(pX|Cmd, DCA|
|00005ce0| 52 44 29 3b 0d 20 20 65 | 6c 73 65 20 69 66 20 28 |RD);. e|lse if (|
|00005cf0| 73 74 72 63 6d 70 28 6d | 65 73 73 61 67 65 2c 22 |strcmp(m|essage,"|
|00005d00| 46 49 4c 45 22 29 3d 3d | 30 29 20 20 20 46 69 6c |FILE")==|0) Fil|
|00005d10| 65 48 50 57 69 6e 64 28 | 70 58 43 6d 64 29 3b 0d |eHPWind(|pXCmd);.|
|00005d20| 20 20 65 6c 73 65 20 69 | 66 20 28 73 74 72 63 6d | else i|f (strcm|
|00005d30| 70 28 6d 65 73 73 61 67 | 65 2c 22 43 4c 49 50 22 |p(messag|e,"CLIP"|
|00005d40| 29 3d 3d 30 29 20 20 20 | 43 6c 69 70 48 50 57 69 |)==0) |ClipHPWi|
|00005d50| 6e 64 28 70 58 43 6d 64 | 29 3b 0d 20 20 65 6c 73 |nd(pXCmd|);. els|
|00005d60| 65 20 69 66 20 28 73 74 | 72 63 6d 70 28 6d 65 73 |e if (st|rcmp(mes|
|00005d70| 73 61 67 65 2c 22 50 52 | 49 4e 54 22 29 3d 3d 30 |sage,"PR|INT")==0|
|00005d80| 29 20 20 50 72 69 6e 74 | 48 50 57 69 6e 64 28 70 |) Print|HPWind(p|
|00005d90| 58 43 6d 64 29 3b 0d 20 | 20 65 6c 73 65 20 69 66 |XCmd);. | else if|
|00005da0| 20 28 73 74 72 63 6d 70 | 28 6d 65 73 73 61 67 65 | (strcmp|(message|
|00005db0| 2c 22 43 4c 4f 53 45 22 | 29 3d 3d 30 29 20 20 43 |,"CLOSE"|)==0) C|
|00005dc0| 6c 6f 73 65 48 50 57 69 | 6e 64 28 70 58 43 6d 64 |loseHPWi|nd(pXCmd|
|00005dd0| 29 3b 0d 20 20 65 6c 73 | 65 20 7b 0d 20 20 20 20 |);. els|e {. |
|00005de0| 53 79 73 42 65 65 70 28 | 30 29 3b 0d 20 20 20 20 |SysBeep(|0);. |
|00005df0| 72 65 74 75 72 6e 56 61 | 6c 75 65 28 20 70 58 43 |returnVa|lue( pXC|
|00005e00| 6d 64 2c 20 22 a4 a4 a4 | 20 55 6e 64 65 66 69 6e |md, "...| Undefin|
|00005e10| 65 64 20 6d 65 73 73 61 | 67 65 20 69 6e 20 68 70 |ed messa|ge in hp|
|00005e20| 32 70 69 63 74 20 58 43 | 4d 44 22 29 3b 0d 20 20 |2pict XC|MD");. |
|00005e30| 20 20 7d 0d 20 20 53 65 | 74 50 6f 72 74 28 20 63 | }. Se|tPort( c|
|00005e40| 61 72 64 70 6f 72 74 29 | 3b 0d 20 20 72 65 74 75 |ardport)|;. retu|
|00005e50| 72 6e 3b 0d 7d 0d 0d 0d | 23 64 65 66 69 6e 65 20 |rn;.}...|#define |
|00005e60| 6d 69 6e 28 61 2c 62 29 | 20 20 28 61 3c 62 29 20 |min(a,b)| (a<b) |
|00005e70| 3f 20 61 20 3a 20 62 0d | 23 64 65 66 69 6e 65 20 |? a : b.|#define |
|00005e80| 6d 61 78 28 61 2c 62 29 | 20 20 28 61 3e 62 29 20 |max(a,b)| (a>b) |
|00005e90| 3f 20 61 20 3a 20 62 0d | 23 64 65 66 69 6e 65 20 |? a : b.|#define |
|00005ea0| 49 73 61 6c 70 68 61 28 | 63 29 20 20 20 20 28 28 |Isalpha(|c) ((|
|00005eb0| 63 20 3e 3d 20 27 41 27 | 20 26 20 63 20 3c 3d 20 |c >= 'A'| & c <= |
|00005ec0| 27 5a 27 29 20 5c 0d 20 | 20 20 20 20 20 20 20 20 |'Z') \. | |
|00005ed0| 20 20 20 20 20 20 20 20 | 20 20 20 7c 20 20 28 63 | | | (c|
|00005ee0| 20 3e 3d 20 27 61 27 20 | 26 20 63 20 3c 3d 20 27 | >= 'a' |& c <= '|
|00005ef0| 7a 27 29 29 0d 0d 69 6e | 74 20 54 6f 75 70 70 65 |z'))..in|t Touppe|
|00005f00| 72 28 63 68 61 72 20 63 | 29 0d 7b 0d 20 20 72 65 |r(char c|).{. re|
|00005f10| 74 75 72 6e 28 20 28 63 | 3e 3d 27 61 27 29 26 26 |turn( (c|>='a')&&|
|00005f20| 28 63 3c 3d 27 7a 27 29 | 20 3f 20 28 63 2d 28 27 |(c<='z')| ? (c-('|
|00005f30| 61 27 2d 27 41 27 29 29 | 20 3a 20 63 20 29 3b 0d |a'-'A'))| : c );.|
|00005f40| 7d 0d 0d 0d 76 6f 69 64 | 20 75 70 63 61 73 65 28 |}...void| upcase(|
|00005f50| 63 68 61 72 20 2a 73 29 | 0d 7b 0d 20 20 69 6e 74 |char *s)|.{. int|
|00005f60| 20 69 2c 6c 3b 0d 20 20 | 6c 20 3d 20 73 74 72 6c | i,l;. |l = strl|
|00005f70| 65 6e 28 73 29 3b 0d 20 | 20 66 6f 72 20 28 69 3d |en(s);. | for (i=|
|00005f80| 30 3b 69 3c 6c 3b 69 2b | 2b 29 20 73 5b 69 5d 20 |0;i<l;i+|+) s[i] |
|00005f90| 3d 20 54 6f 75 70 70 65 | 72 28 73 5b 69 5d 29 3b |= Touppe|r(s[i]);|
|00005fa0| 0d 7d 0d 0d 66 6c 6f 61 | 74 20 20 53 74 72 74 6f |.}..floa|t Strto|
|00005fb0| 64 28 63 68 61 72 20 2a | 73 2c 20 63 68 61 72 20 |d(char *|s, char |
|00005fc0| 2a 2a 65 6e 64 73 29 0d | 7b 20 20 2f 2a 20 73 74 |**ends).|{ /* st|
|00005fd0| 64 6c 69 62 20 73 74 72 | 74 6f 64 2c 20 73 74 72 |dlib str|tod, str|
|00005fe0| 74 6f 6c 20 75 73 65 20 | 25 47 6c 6f 62 61 6c 44 |tol use |%GlobalD|
|00005ff0| 61 74 61 20 21 21 20 2a | 2f 0d 20 20 66 6c 6f 61 |ata !! *|/. floa|
|00006000| 74 20 20 20 78 3b 0d 20 | 20 73 68 6f 72 74 20 20 |t x;. | short |
|00006010| 20 65 3b 0d 20 20 64 65 | 63 69 6d 61 6c 20 64 72 | e;. de|cimal dr|
|00006020| 65 63 3b 0d 20 20 73 68 | 6f 72 74 20 20 20 76 61 |ec;. sh|ort va|
|00006030| 6c 69 64 3b 0d 0d 20 20 | 65 20 3d 20 30 3b 0d 20 |lid;.. |e = 0;. |
|00006040| 20 73 74 72 32 64 65 63 | 28 20 73 2c 20 26 65 2c | str2dec|( s, &e,|
|00006050| 20 26 64 72 65 63 2c 20 | 26 76 61 6c 69 64 29 3b | &drec, |&valid);|
|00006060| 0d 20 20 78 20 3d 20 64 | 65 63 32 6e 75 6d 28 20 |. x = d|ec2num( |
|00006070| 26 64 72 65 63 29 3b 0d | 20 20 2a 65 6e 64 73 20 |&drec);.| *ends |
|00006080| 3d 20 73 20 2b 20 65 3b | 0d 20 20 72 65 74 75 72 |= s + e;|. retur|
|00006090| 6e 20 78 3b 0d 7d 0d 0d | 0d 76 6f 69 64 20 20 73 |n x;.}..|.void s|
|000060a0| 74 72 32 72 65 63 74 28 | 63 68 61 72 20 2a 63 2c |tr2rect(|char *c,|
|000060b0| 20 52 65 63 74 20 2a 72 | 29 0d 2f 2a 20 63 6f 6e | Rect *r|)./* con|
|000060c0| 76 65 72 74 20 48 43 20 | 72 65 63 74 20 73 74 72 |vert HC |rect str|
|000060d0| 69 6e 67 20 74 6f 20 52 | 65 63 74 20 2a 2f 0d 7b |ing to R|ect */.{|
|000060e0| 0d 20 20 72 2d 3e 6c 65 | 66 74 20 20 20 3d 20 53 |. r->le|ft = S|
|000060f0| 74 72 74 6f 64 28 20 63 | 2c 20 26 63 29 3b 20 63 |trtod( c|, &c); c|
|00006100| 2b 2b 3b 0d 20 20 72 2d | 3e 74 6f 70 20 20 20 20 |++;. r-|>top |
|00006110| 3d 20 53 74 72 74 6f 64 | 28 20 63 2c 20 26 63 29 |= Strtod|( c, &c)|
|00006120| 3b 20 63 2b 2b 3b 0d 20 | 20 72 2d 3e 72 69 67 68 |; c++;. | r->righ|
|00006130| 74 20 20 3d 20 53 74 72 | 74 6f 64 28 20 63 2c 20 |t = Str|tod( c, |
|00006140| 26 63 29 3b 20 63 2b 2b | 3b 0d 20 20 72 2d 3e 62 |&c); c++|;. r->b|
|00006150| 6f 74 74 6f 6d 20 3d 20 | 53 74 72 74 6f 64 28 20 |ottom = |Strtod( |
|00006160| 63 2c 20 26 63 29 3b 0d | 7d 0d 0d 0d 42 6f 6f 6c |c, &c);.|}...Bool|
|00006170| 65 61 6e 20 68 61 73 43 | 6f 6c 6f 72 51 44 28 76 |ean hasC|olorQD(v|
|00006180| 6f 69 64 29 0d 7b 0d 20 | 20 53 79 73 45 6e 76 52 |oid).{. | SysEnvR|
|00006190| 65 63 20 74 68 65 57 6f | 72 6c 64 3b 0d 20 20 69 |ec theWo|rld;. i|
|000061a0| 6e 74 20 20 20 20 20 20 | 65 72 72 3b 0d 0d 20 20 |nt |err;.. |
|000061b0| 65 72 72 20 3d 20 53 79 | 73 45 6e 76 69 72 6f 6e |err = Sy|sEnviron|
|000061c0| 73 28 31 2c 26 74 68 65 | 57 6f 72 6c 64 29 3b 0d |s(1,&the|World);.|
|000061d0| 20 20 69 66 20 28 65 72 | 72 21 3d 30 29 20 72 65 | if (er|r!=0) re|
|000061e0| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 20 20 65 6c |turn fal|se;. el|
|000061f0| 73 65 20 72 65 74 75 72 | 6e 20 74 68 65 57 6f 72 |se retur|n theWor|
|00006200| 6c 64 2e 68 61 73 43 6f | 6c 6f 72 51 44 3b 0d 7d |ld.hasCo|lorQD;.}|
|00006210| 0d 0d 23 64 65 66 69 6e | 65 20 6c 6f 74 73 4f 66 |..#defin|e lotsOf|
|00006220| 43 6f 6c 6f 72 28 77 69 | 6e 64 29 20 5c 0d 20 20 |Color(wi|nd) \. |
|00006230| 20 20 28 20 28 2a 2a 28 | 28 43 47 72 61 66 50 74 | ( (**(|(CGrafPt|
|00006240| 72 29 77 69 6e 64 29 2d | 3e 70 6f 72 74 50 69 78 |r)wind)-|>portPix|
|00006250| 4d 61 70 29 2e 70 69 78 | 65 6c 53 69 7a 65 20 3e |Map).pix|elSize >|
|00006260| 20 37 20 29 0d 0d 0d 76 | 6f 69 64 20 20 72 65 74 | 7 )...v|oid ret|
|00006270| 75 72 6e 56 61 6c 75 65 | 28 58 43 6d 64 50 74 72 |urnValue|(XCmdPtr|
|00006280| 20 70 58 43 6d 64 2c 20 | 63 68 61 72 20 2a 74 68 | pXCmd, |char *th|
|00006290| 65 52 65 73 75 6c 74 29 | 0d 7b 0d 20 20 6c 6f 6e |eResult)|.{. lon|
|000062a0| 67 20 6c 65 6e 3b 0d 20 | 20 48 61 6e 64 6c 65 20 |g len;. | Handle |
|000062b0| 72 65 73 75 6c 74 48 61 | 6e 64 6c 65 3b 0d 0d 20 |resultHa|ndle;.. |
|000062c0| 20 2f 2a 20 72 65 74 75 | 72 6e 20 74 68 65 20 72 | /* retu|rn the r|
|000062d0| 65 73 75 6c 74 20 74 6f | 20 48 43 61 72 64 20 2a |esult to| HCard *|
|000062e0| 2f 0d 20 20 6c 65 6e 20 | 3d 20 31 2b 73 74 72 6c |/. len |= 1+strl|
|000062f0| 65 6e 28 74 68 65 52 65 | 73 75 6c 74 29 3b 0d 20 |en(theRe|sult);. |
|00006300| 20 72 65 73 75 6c 74 48 | 61 6e 64 6c 65 20 3d 20 | resultH|andle = |
|00006310| 4e 65 77 48 61 6e 64 6c | 65 28 6c 65 6e 29 3b 0d |NewHandl|e(len);.|
|00006320| 20 20 48 4c 6f 63 6b 28 | 72 65 73 75 6c 74 48 61 | HLock(|resultHa|
|00006330| 6e 64 6c 65 29 3b 0d 20 | 20 42 6c 6f 63 6b 4d 6f |ndle);. | BlockMo|
|00006340| 76 65 28 74 68 65 52 65 | 73 75 6c 74 2c 2a 72 65 |ve(theRe|sult,*re|
|00006350| 73 75 6c 74 48 61 6e 64 | 6c 65 2c 6c 65 6e 29 3b |sultHand|le,len);|
|00006360| 0d 20 20 48 55 6e 6c 6f | 63 6b 28 72 65 73 75 6c |. HUnlo|ck(resul|
|00006370| 74 48 61 6e 64 6c 65 29 | 3b 0d 20 20 70 58 43 6d |tHandle)|;. pXCm|
|00006380| 64 2d 3e 72 65 74 75 72 | 6e 56 61 6c 75 65 20 3d |d->retur|nValue =|
|00006390| 20 72 65 73 75 6c 74 48 | 61 6e 64 6c 65 3b 0d 7d | resultH|andle;.}|
|000063a0| 0d 0d 0d 0d 76 6f 69 64 | 20 4f 70 65 6e 48 50 57 |....void| OpenHPW|
|000063b0| 69 6e 64 28 58 43 6d 64 | 50 74 72 20 70 58 43 6d |ind(XCmd|Ptr pXCm|
|000063c0| 64 29 0d 7b 0d 20 20 63 | 68 61 72 20 20 20 20 20 |d).{. c|har |
|000063d0| 20 2a 74 68 65 4e 61 6d | 65 2c 20 2a 63 2c 20 74 | *theNam|e, *c, t|
|000063e0| 68 65 52 65 73 75 6c 74 | 5b 32 35 36 5d 3b 0d 20 |heResult|[256];. |
|000063f0| 20 52 65 63 74 20 20 20 | 20 20 20 77 72 3b 0d 20 | Rect | wr;. |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.